From f79dd4824c72ab93e90bdbf1d3fa130f7fb3c97d Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 18 Aug 2022 00:19:07 -0700 Subject: simplify --- text.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/text.lua b/text.lua index c38dc1e..4a585b7 100644 --- a/text.lua +++ b/text.lua @@ -498,10 +498,7 @@ function Text.down(State) end else -- move down one screen line in current line - local scroll_down = false - if Text.le1(State.screen_bottom1, State.cursor1) then - scroll_down = true - end + local scroll_down = Text.le1(State.screen_bottom1, State.cursor1) --? print('cursor is NOT at final screen line of its line') local screen_line_starting_pos, screen_line_index = Text.pos_at_start_of_cursor_screen_line(State) new_screen_line_starting_pos = State.line_cache[State.cursor1.line].screen_line_starting_pos[screen_line_index+1] -- cgit 1.4.1-2-gfad0