about summary refs log tree commit diff stats
path: root/text.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-25 13:35:32 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-25 13:35:32 -0700
commit442133fe7f629a825bbf30b05e29cc85b836c93c (patch)
tree7a15dfba5bf4e7762c8a19be33fa3371273861af /text.lua
parentfa103ca2e8674dd389888d77f9ef60f361a0c704 (diff)
downloadtext.love-442133fe7f629a825bbf30b05e29cc85b836c93c.tar.gz
no, make sure to compute line width after screen dimensions
Diffstat (limited to 'text.lua')
-rw-r--r--text.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/text.lua b/text.lua
index 200ed64..5fbff05 100644
--- a/text.lua
+++ b/text.lua
@@ -641,7 +641,7 @@ function test_pageup_scrolls_up_from_middle_screen_line()
 end
 
 function Text.compute_fragments(line, line_width)
---?   print('compute_fragments')
+--?   print('compute_fragments', line_width)
   line.fragments = {}
   local x = 25
   -- try to wrap at word boundaries
@@ -1158,6 +1158,7 @@ function Text.previous_screen_line(pos2)
 end
 
 function Text.populate_screen_line_starting_pos(line_index)
+--?   print('Text.populate_screen_line_starting_pos')
   -- duplicate some logic from Text.draw
   local line = Lines[line_index]
   if line.fragments == nil then