From 95342345a827616c9f5fa7c914c02505d9e6ff4d Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 2 Apr 2023 17:24:02 -0700 Subject: [PATCH] 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. --- text.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text.lua b/text.lua index 709a676..758c572 100644 --- a/text.lua +++ b/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