bugfix
scenario: press ctrl+f, type in a string hit down arrow if needed until the screen scrolls press enter click with the mouse somewhere Before this commit the app would crash because cursor was above screen top.
This commit is contained in:
parent
f4e14ad484
commit
224e8fe85a
1
edit.lua
1
edit.lua
|
@ -310,6 +310,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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue