about summary refs log tree commit diff stats
path: root/text.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-08-11 19:35:12 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-08-11 19:35:12 -0700
commitd14e03d7065e989125f0985e497419dddd50da66 (patch)
tree8f0305e05b6d90a7546d9342648c3720eac7b2f2 /text.lua
parent9ac68d710b55c206c4de7b84620efa48b87615ba (diff)
downloadtext.love-d14e03d7065e989125f0985e497419dddd50da66.tar.gz
bugfix: handle drawings when updating screen top
Diffstat (limited to 'text.lua')
-rw-r--r--text.lua1
1 files changed, 1 insertions, 0 deletions
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