about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-07-08 15:58:15 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-07-08 15:58:15 -0700
commit348c53f3abb4496f6e68f6d46f2cb98ce1d28c32 (patch)
treeae534d131e754588ecc60d31e8b9f53f6c69eb7c
parent0106ad4b4f16efe2faeb4a6533e54089fbf1aae6 (diff)
downloadview.love-348c53f3abb4496f6e68f6d46f2cb98ce1d28c32.tar.gz
add args to some functions
  - Text.cursor_at_final_screen_line
-rw-r--r--text.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/text.lua b/text.lua
index 7713b0f..7958a4a 100644
--- a/text.lua
+++ b/text.lua
@@ -456,7 +456,7 @@ end
 function Text.down(left, right)
   assert(Lines[Cursor1.line].mode == 'text')
 --?   print('down', Cursor1.line, Cursor1.pos, Screen_top1.line, Screen_top1.pos, Screen_bottom1.line, Screen_bottom1.pos)
-  if Text.cursor_at_final_screen_line() then
+  if Text.cursor_at_final_screen_line(left, right) then
     -- line is done, skip to next text line
 --?     print('cursor at final screen line of its line')
     local new_cursor_line = Cursor1.line
@@ -598,7 +598,7 @@ function Text.pos_at_start_of_cursor_screen_line(left, right)
   assert(false)
 end
 
-function Text.cursor_at_final_screen_line()
+function Text.cursor_at_final_screen_line(left, right)
   Text.populate_screen_line_starting_pos(Lines[Cursor1.line])
   local screen_lines = Lines[Cursor1.line].screen_line_starting_pos
 --?   print(screen_lines[#screen_lines], Cursor1.pos)