assert for a bug I saw a while ago but can no longer reproduce

I saw screen_top not at start of screen line, but at cursor location in
middle of line.
This commit is contained in:
Kartik K. Agaram 2022-05-25 15:00:13 -07:00
parent 34950353b9
commit 815c4f010a
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ function App.draw()
for line_index,line in ipairs(Lines) do
line.y = nil
end
assert(Screen_top1.line < Cursor1.line or (Screen_top1.line == Cursor1.line and Screen_top1.pos <= Cursor1.pos))
local y = 15
--? print('== draw')
for line_index,line in ipairs(Lines) do