about summary refs log tree commit diff stats
path: root/source_edit.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2024-10-29 17:47:38 -0700
committerKartik K. Agaram <vc@akkartik.com>2024-10-29 17:47:38 -0700
commit6975b8b7210296da1280a56c29f279eac39cdbda (patch)
tree735ff990ac247634fb0d64fdb965258624bd4cdd /source_edit.lua
parent0940e7276100c4a368d12e03522aea45bb42b8ed (diff)
downloadlines.love-6975b8b7210296da1280a56c29f279eac39cdbda.tar.gz
bugfix #3, attempt #2 in search UI
Avoid accidental side-effects.
Diffstat (limited to 'source_edit.lua')
-rw-r--r--source_edit.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/source_edit.lua b/source_edit.lua
index 733ca61..7599a4a 100644
--- a/source_edit.lua
+++ b/source_edit.lua
@@ -437,9 +437,7 @@ function edit.keychord_press(State, chord, key)
         Text.search_next(State)
       end
     elseif chord == 'up' then
-      if #State.search_term > 0 then
-        Text.search_previous(State)
-      end
+      Text.search_previous(State)
     end
     return
   elseif chord == 'C-f' then