about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2024-06-16 05:20:05 -0700
committerKartik K. Agaram <vc@akkartik.com>2024-06-16 05:20:05 -0700
commit2fdb6fa729ad64b94937cf4c24aada41769fd0da (patch)
treef0852689dcf34443a1d0a392bb6986c709d05bce
parent55f5c2d696ffba6c5d220d8e317c15ed2335ac7b (diff)
downloadtext.love-2fdb6fa729ad64b94937cf4c24aada41769fd0da.tar.gz
update a stale comment
-rw-r--r--edit.lua3
1 files changed, 1 insertions, 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:
a id='n133' href='#n133'>133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218