~akkartik/techmeet-capture.love

aa636374d1f2c2d947232770c92a089230640aac — Kartik K. Agaram 4 days ago 5151841 + e867898 main
Merge capture.love
1 files changed, 1 insertions(+), 2 deletions(-)

M edit.lua
M edit.lua => edit.lua +1 -2
@@ 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: