Scenario: open pensieve.love press ctrl+e to edit first pane hit pagedown
Result before this commit: top of screen after pagedown is a drawing pensieve.love crashes
TYIIK36U52MEPMQ52AMVNLYTPUBBHFQD4GHRCFLUYVR7YHYQCY4QC
Text.populate_screen_line_starting_pos(pane, loc.line)
for i,screen_line_starting_pos in ipairs(pane.line_cache[loc.line].screen_line_starting_pos) do
assert(screen_line_starting_pos <= loc.pos)
if screen_line_starting_pos == loc.pos then
break
if pane.lines[loc.line].mode == 'text' then
Text.populate_screen_line_starting_pos(pane, loc.line)
for i,screen_line_starting_pos in ipairs(pane.line_cache[loc.line].screen_line_starting_pos) do
assert(screen_line_starting_pos <= loc.pos)
if screen_line_starting_pos == loc.pos then
break
end
result = result + Line_height