From d14e03d7065e989125f0985e497419dddd50da66 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 11 Aug 2022 19:35:12 -0700 Subject: [PATCH] bugfix: handle drawings when updating screen top --- text.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/text.lua b/text.lua index d64d7a6..3d70f93 100644 --- a/text.lua +++ b/text.lua @@ -922,6 +922,7 @@ end function Text.populate_screen_line_starting_pos(State, line_index) local line = State.lines[line_index] + if line.mode ~= 'text' then return end local line_cache = State.line_cache[line_index] if line_cache.screen_line_starting_pos then return