From 442133fe7f629a825bbf30b05e29cc85b836c93c Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 25 May 2022 13:35:32 -0700 Subject: no, make sure to compute line width after screen dimensions --- text.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'text.lua') 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 -- cgit 1.4.1-2-gfad0