From 2fdb6fa729ad64b94937cf4c24aada41769fd0da Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 16 Jun 2024 05:20:05 -0700 Subject: [PATCH] update a stale comment --- edit.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/edit.lua b/edit.lua index 7154a7d..1fbe682 100644 --- a/edit.lua +++ b/edit.lua @@ -51,8 +51,7 @@ function edit.initialize_state(top, left, right, font, font_height, line_height) -- rendering wrapped text lines needs some additional short-lived data per line: -- startpos, the index of data the line starts rendering from, can only be >1 for topmost line on screen - -- fragments: snippets of the line guaranteed to not straddle screen lines - -- screen_line_starting_pos: optional array of grapheme indices if it wraps over more than one screen line + -- screen_line_starting_pos: optional array of codepoint indices if it wraps over more than one screen line line_cache = {}, -- Given wrapping, any potential location for the text cursor can be described in two ways: