change cursor bounds check slightly
This doesn't affect this fork directly, but it's a bad idea to assume the _app_ is always going to be doing just what a particular subsystem (here, the text editor in edit.lua+text.lua) is doing.
This commit is contained in:
parent
384fb2d19c
commit
95342345a8
2
text.lua
2
text.lua
|
@ -936,7 +936,7 @@ end
|
|||
|
||||
-- slightly expensive since it redraws the screen
|
||||
function Text.cursor_out_of_screen(State)
|
||||
App.draw()
|
||||
edit.draw(State)
|
||||
return State.cursor_y == nil
|
||||
-- this approach is cheaper and almost works, except on the final screen
|
||||
-- where file ends above bottom of screen
|
||||
|
|
Loading…
Reference in New Issue