yet another bugfix. But for how long?

This commit is contained in:
Kartik K. Agaram 2022-05-22 09:15:56 -07:00
parent ac74592c42
commit f1eba43ed3
1 changed files with 1 additions and 1 deletions

View File

@ -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