about summary refs log tree commit diff stats
path: root/edit.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-08-14 07:56:12 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-08-14 07:56:12 -0700
commit4d1e7f922db04e1d57d5604ec604b974c922cbf8 (patch)
tree676d11ea829e690d54c00d20d3e58b78d7a388ab /edit.lua
parentcc289363fa7ee394c4217810627ca8a871757391 (diff)
downloadtext.love-4d1e7f922db04e1d57d5604ec604b974c922cbf8.tar.gz
bugfix: obsolete location for attribute
Diffstat (limited to 'edit.lua')
-rw-r--r--edit.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/edit.lua b/edit.lua
index 7006da8..efc6f71 100644
--- a/edit.lua
+++ b/edit.lua
@@ -352,7 +352,7 @@ function edit.keychord_pressed(State, chord, key)
     edit.update_font_settings(State, 20)
     Text.redraw_all(State)
   elseif chord == 'C-z' then
-    for _,line in ipairs(State.lines) do line.starty = nil end  -- just in case we scroll
+    for _,line_cache in ipairs(State.line_cache) do line_cache.starty = nil end  -- just in case we scroll
     local event = undo_event(State)
     if event then
       local src = event.before
@@ -396,7 +396,7 @@ function edit.keychord_pressed(State, chord, key)
     end
     schedule_save(State)
   elseif chord == 'C-v' then
-    for _,line in ipairs(State.lines) do line.starty = nil end  -- just in case we scroll
+    for _,line_cache in ipairs(State.line_cache) do line_cache.starty = nil end  -- just in case we scroll
     -- We don't have a good sense of when to scroll, so we'll be conservative
     -- and sometimes scroll when we didn't quite need to.
     local before_line = State.cursor1.line