about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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