unnecessary args

This commit is contained in:
Kartik K. Agaram 2022-08-10 22:29:39 -07:00
parent 6a6ff18916
commit 8cfffdef41
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ function Text.keychord_pressed(State, chord)
State.cursor1.line = State.cursor1.line-1
end
if Text.lt1(State.cursor1, State.screen_top1) then
local top2 = Text.to2(State, State.screen_top1, State.left, State.right)
local top2 = Text.to2(State, State.screen_top1)
top2 = Text.previous_screen_line(State, top2, State.left, State.right)
State.screen_top1 = Text.to1(State, top2)
Text.redraw_all(State) -- if we're scrolling, reclaim all fragments to avoid memory leaks