Skip to content

Commit ca08a88

Browse files
committed
don't search on empty input
1 parent 06811c9 commit ca08a88

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

gui/launcher.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ function EditPanel:move_history(delta)
272272
end
273273

274274
function EditPanel:on_search_text(search_str, next_match)
275+
if not search_str or #search_str == 0 then return end
275276
local start_idx = math.min(self.history_idx - (next_match and 1 or 0),
276277
#history)
277278
for history_idx = start_idx, 1, -1 do

0 commit comments

Comments
 (0)