about summary refs log tree commit diff stats
path: root/text.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-06-04 20:52:36 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-06-04 20:52:36 -0700
commit4c5ac9ae5ea50bb2a848ca79f2bb4a4828a2944d (patch)
tree08ee8c6f406eec93b2ea1bc86ecb9351e81fdd27 /text.lua
parentdb8b5b506274bc01376303d3a3a2559954e9389b (diff)
downloadtext.love-4c5ac9ae5ea50bb2a848ca79f2bb4a4828a2944d.tar.gz
regression: couldn't do many drawing operations because line.y was reset
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 cbccc85..7302a0a 100644
--- a/text.lua
+++ b/text.lua
@@ -887,6 +887,7 @@ end
 
 function Text.redraw_all()
   for _,line in ipairs(Lines) do
+    line.y = nil
     line.fragments = nil
     line.screen_line_starting_pos = nil
   end