diff options
Diffstat (limited to 'edit.lua')
-rw-r--r-- | edit.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/edit.lua b/edit.lua index a0ac010..fc0f6ec 100644 --- a/edit.lua +++ b/edit.lua @@ -391,8 +391,8 @@ function edit.keychord_pressed(State, chord, key) Text.insert_at_cursor(State, c) end end - if Text.cursor_past_screen_bottom() then - Text.snap_cursor_to_bottom_of_screen(State.margin_left, App.screen.height-State.margin_right) + if Text.cursor_past_screen_bottom(State) then + Text.snap_cursor_to_bottom_of_screen(State, State.margin_left, App.screen.height-State.margin_right) end schedule_save(State) record_undo_event(State, {before=before, after=snapshot(State, before_line, State.cursor1.line)}) |