diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-07-08 16:22:11 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-07-08 16:22:11 -0700 |
commit | 3eb89adca6ffa6157236425458d64a735a1d2fa1 (patch) | |
tree | 5a1412d80e0739f60323cbfd86eebd06e98014fa /main.lua | |
parent | b163f1bc510e6b2a3c72e2768a1a9cdf9b78e22d (diff) | |
download | text.love-3eb89adca6ffa6157236425458d64a735a1d2fa1.tar.gz |
add args to some functions
- Text.snap_cursor_to_bottom_of_screen
Diffstat (limited to 'main.lua')
-rw-r--r-- | main.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main.lua b/main.lua index 7d5b073..453d5ff 100644 --- a/main.lua +++ b/main.lua @@ -533,7 +533,7 @@ function App.keychord_pressed(chord, key) end end if Text.cursor_past_screen_bottom() then - Text.snap_cursor_to_bottom_of_screen() + Text.snap_cursor_to_bottom_of_screen(Margin_left, App.screen.height-Margin_right) end schedule_save() record_undo_event({before=before, after=snapshot(before_line, Cursor1.line)}) |