diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2024-10-29 17:47:38 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2024-10-29 17:47:38 -0700 |
commit | 6975b8b7210296da1280a56c29f279eac39cdbda (patch) | |
tree | 735ff990ac247634fb0d64fdb965258624bd4cdd /source_edit.lua | |
parent | 0940e7276100c4a368d12e03522aea45bb42b8ed (diff) | |
download | lines.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.lua | 4 |
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 |