about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-02-09 23:19:52 -0800
committerKartik K. Agaram <vc@akkartik.com>2023-02-09 23:19:52 -0800
commit67334814a331d41c43c186adf12ee86717918fd6 (patch)
tree523fc865280f74f4709b45b6cd0d7e8839901b80
parent9c49dd0e6a30be3ca9d9f7e63915d3ac6f5e05e3 (diff)
parent224e8fe85a55671139527b1e77c88a1f0d629313 (diff)
downloadtext.love-67334814a331d41c43c186adf12ee86717918fd6.tar.gz
Merge lines.love
-rw-r--r--edit.lua1
-rw-r--r--source_edit.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/edit.lua b/edit.lua
index 5f53d2b..7754493 100644
--- a/edit.lua
+++ b/edit.lua
@@ -202,6 +202,7 @@ function edit.keychord_press(State, chord, key)
     Text.delete_selection(State, State.left, State.right)
   end
   if State.search_term then
+    for _,line_cache in ipairs(State.line_cache) do line_cache.starty = nil end  -- just in case we scroll
     if chord == 'escape' then
       State.search_term = nil
       State.search_text = nil
diff --git a/source_edit.lua b/source_edit.lua
index 85bb463..e17f2f2 100644
--- a/source_edit.lua
+++ b/source_edit.lua
@@ -318,6 +318,7 @@ function edit.keychord_press(State, chord, key)
     Text.delete_selection(State, State.left, State.right)
   end
   if State.search_term then
+    for _,line_cache in ipairs(State.line_cache) do line_cache.starty = nil end  -- just in case we scroll
     if chord == 'escape' then
       State.search_term = nil
       State.search_text = nil