diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2024-06-16 06:06:23 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2024-06-16 06:06:23 -0700 |
commit | 0750d185a65f937595559c53ec1658e3c4ea577b (patch) | |
tree | d7bb1dc5f95568da8347abeb3d4949e22116ed0a /edit.lua | |
parent | 29cd42d065050ca1c4a9cd2353ece4a68962a8ce (diff) | |
parent | f4827991c5913b4a396fd1d67e081f653dfa8cff (diff) | |
download | view.love-0750d185a65f937595559c53ec1658e3c4ea577b.tar.gz |
Merge text.love
Diffstat (limited to 'edit.lua')
-rw-r--r-- | edit.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/edit.lua b/edit.lua index 6a7d708..9957f46 100644 --- a/edit.lua +++ b/edit.lua @@ -19,8 +19,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: |