add args to some functions

[?]
Jul 8, 2022, 10:49 PM
2TQR4PSY2FBIKEEKC2Y5ZPVPOD2QJ3EATII47PPWNMTAQA7EQ6GAC

Dependencies

  • [2] YJJ4X4JG bugfix: avoid scrolling on 'end'
  • [3] 2H67P75X switch arg for a function
  • [4] V5MJRFOZ bugfix: down arrow doesn't scroll up unnecessarily
  • [5] 4J2L6JMR bugfix: deleting a selection spanning pages
  • [6] ZHLO7K3M add args to some functions
  • [7] MP2TBKU6 bugfix: crash in Text.up() after return
  • [8] PIEDOKYQ bugfix
  • [9] CUIV2LE5 some typos
  • [10] CBPV5SSI stop handling nil screen_line_starting_pos everywhere
  • [11] ZPUQSPQP extract a few methods
  • [12] WOXIYUTL bugfix: manage screen_top and cursor when resizing
  • [13] 2RXZ3PGO beginning of a new approach to scroll+wrap
  • [14] SVJZZDC3 snapshot - no, that's all wrong
  • [15] AYE2VEGJ extract a couple of methods
  • [16] LXTTOB33 extract a couple of files
  • [17] CPZGQT72 go through and fix similar issues
  • [18] HTWAM4NZ bugfix: scrolling in left/right movements
  • [*] BULPIBEG beginnings of a module for the text editor

Change contents

  • replacement in text.lua at line 408
    [4.232][4.200:295](),[4.200][4.200:295]()
    local screen_line_index,screen_line_starting_pos = Text.pos_at_start_of_cursor_screen_line()
    [4.232]
    [4.295]
    local screen_line_index,screen_line_starting_pos = Text.pos_at_start_of_cursor_screen_line(left, right)
  • replacement in text.lua at line 485
    [4.3993][4.3993:4091]()
    local screen_line_index, screen_line_starting_pos = Text.pos_at_start_of_cursor_screen_line()
    [4.3993]
    [4.4091]
    local screen_line_index, screen_line_starting_pos = Text.pos_at_start_of_cursor_screen_line(left, right)
  • replacement in text.lua at line 510
    [4.6343][4.6343:6404]()
    local _,botpos = Text.pos_at_start_of_cursor_screen_line()
    [4.6343]
    [4.6404]
    local _,botpos = Text.pos_at_start_of_cursor_screen_line(left, right)
  • replacement in text.lua at line 590
    [4.1332][4.1332:1383]()
    function Text.pos_at_start_of_cursor_screen_line()
    [4.1332]
    [3.252]
    function Text.pos_at_start_of_cursor_screen_line(left, right)
  • replacement in text.lua at line 962
    [2.419][2.419:484]()
    --? local _,botpos = Text.pos_at_start_of_cursor_screen_line()
    [2.419]
    [2.484]
    --? local _,botpos = Text.pos_at_start_of_cursor_screen_line(left, right)
  • replacement in select.lua at line 138
    [4.1094][4.1094:1160]()
    _,Screen_top1.pos = Text.pos_at_start_of_cursor_screen_line()
    [4.1094]
    [4.1160]
    _,Screen_top1.pos = Text.pos_at_start_of_cursor_screen_line(left, right)
  • replacement in search.lua at line 59
    [4.50629][4.50629:50690]()
    local _, pos = Text.pos_at_start_of_cursor_screen_line()
    [4.50629]
    [4.50690]
    local _, pos = Text.pos_at_start_of_cursor_screen_line(Margin_left, App.screen.width-Margin_right)
  • replacement in search.lua at line 99
    [4.51669][4.51669:51730]()
    local _, pos = Text.pos_at_start_of_cursor_screen_line()
    [4.51669]
    [4.51730]
    local _, pos = Text.pos_at_start_of_cursor_screen_line(Margin_left, App.screen.width-Margin_right)