From f1eba43ed3d4a2bf24b8666bfcaab582c4b23601 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 22 May 2022 09:15:56 -0700 Subject: yet another bugfix. But for how long? --- text.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text.lua b/text.lua index 3588aa6..1f2e9bd 100644 --- a/text.lua +++ b/text.lua @@ -381,7 +381,7 @@ function Text.scroll_up_while_cursor_on_screen() assert(Lines[top2.line-1].mode == 'drawing') -- We currently can't draw partial drawings, so either skip it entirely -- or not at all. - local h = 20 + Drawing.pixels(Lines[Screen_top1.line-1].h) + local h = 20 + Drawing.pixels(Lines[top2.line-1].h) if y - h < 15 then break end -- cgit 1.4.1-2-gfad0