about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-22 09:15:56 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-22 10:40:34 -0700
commitf1eba43ed3d4a2bf24b8666bfcaab582c4b23601 (patch)
tree8ab0059637de19f1e6e36f95dc0f45371a7a6ee4
parentac74592c426c0133364625fcafd1c40c993ed8ff (diff)
downloadlines.love-f1eba43ed3d4a2bf24b8666bfcaab582c4b23601.tar.gz
yet another bugfix. But for how long?
-rw-r--r--text.lua2
1 files changed, 1 insertions, 1 deletions
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