about summary refs log tree commit diff stats
path: root/text.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-07-08 16:00:04 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-07-08 16:15:04 -0700
commit57e3aa092a02044161e16b061a21ce41ad7646df (patch)
tree3b78d479b44a3f9c905b50df7182e152a08bd0fa /text.lua
parent348c53f3abb4496f6e68f6d46f2cb98ce1d28c32 (diff)
downloadview.love-57e3aa092a02044161e16b061a21ce41ad7646df.tar.gz
add args to some functions
  - Text.move_cursor_down_to_next_text_line_while_scrolling_again_if_necessary
Diffstat (limited to 'text.lua')
-rw-r--r--text.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/text.lua b/text.lua
index 7958a4a..fe0eada 100644
--- a/text.lua
+++ b/text.lua
@@ -372,7 +372,7 @@ function Text.pageup(left, right)
   Screen_top1 = Text.to1(top2)
   Cursor1.line = Screen_top1.line
   Cursor1.pos = Screen_top1.pos
-  Text.move_cursor_down_to_next_text_line_while_scrolling_again_if_necessary()
+  Text.move_cursor_down_to_next_text_line_while_scrolling_again_if_necessary(left, right)
 --?   print(Cursor1.line, Cursor1.pos, Screen_top1.line, Screen_top1.pos)
 --?   print('pageup end')
 end
@@ -396,7 +396,7 @@ function Text.pagedown(left, right)
 --?   print('setting top to', Screen_top1.line, Screen_top1.pos)
   Cursor1.line = Screen_top1.line
   Cursor1.pos = Screen_top1.pos
-  Text.move_cursor_down_to_next_text_line_while_scrolling_again_if_necessary()
+  Text.move_cursor_down_to_next_text_line_while_scrolling_again_if_necessary(left, right)
 --?   print('top now', Screen_top1.line)
   Text.redraw_all()  -- if we're scrolling, reclaim all fragments to avoid memory leaks
 --?   print('pagedown end')
@@ -605,7 +605,7 @@ function Text.cursor_at_final_screen_line(left, right)
   return screen_lines[#screen_lines] <= Cursor1.pos
 end
 
-function Text.move_cursor_down_to_next_text_line_while_scrolling_again_if_necessary()
+function Text.move_cursor_down_to_next_text_line_while_scrolling_again_if_necessary(left, right)
   local y = Margin_top
   while Cursor1.line <= #Lines do
     if Lines[Cursor1.line].mode == 'text' then