about summary refs log tree commit diff stats
path: root/text.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-08-10 22:29:39 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-08-10 22:29:39 -0700
commit8cfffdef41a56db0e2db7b329c5d0c31b2564e3c (patch)
tree4fd0cf28daead7f655974f8b6f2e3d1b65396228 /text.lua
parent6a6ff1891664b613edb2fdf3d23942025a47dcc5 (diff)
downloadlines.love-8cfffdef41a56db0e2db7b329c5d0c31b2564e3c.tar.gz
unnecessary args
Diffstat (limited to 'text.lua')
-rw-r--r--text.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/text.lua b/text.lua
index ddc5661..555d2c4 100644
--- a/text.lua
+++ b/text.lua
@@ -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