add args to some functions

[?]
Jul 8, 2022, 11:24 PM
2CH77LZCSHAKRKLCCJGDGECVYFNCEV23NF3PFXHAQ2E33AJGSNVAC

Dependencies

  • [2] HTWAM4NZ bugfix: scrolling in left/right movements
  • [3] CBPV5SSI stop handling nil screen_line_starting_pos everywhere
  • [4] 2H67P75X switch arg for a function
  • [5] OGUV4HSA remove some memory leaks from rendered fragments
  • [6] XNFTJHC4 split keyboard handling between Text and Drawing
  • [7] 3OKKTUT4 up and down arrow now moving by screen line where possible
  • [8] MP2TBKU6 bugfix: crash in Text.up() after return
  • [9] HMODUNJE scroll on backspace
  • [10] 2RXZ3PGO beginning of a new approach to scroll+wrap
  • [11] AYE2VEGJ extract a couple of methods
  • [12] KOYAJWE4 extract a couple more methods
  • [13] ZZ2B5RPQ extract variables for drawing padding
  • [14] 242L3OQX bugfix: ensure Cursor_line is always on a text line
  • [15] KZ5GAYRP this fixes the immediate regression
  • [16] ZPUQSPQP extract a few methods
  • [17] KECEMMMR extract couple of functions
  • [18] TRNWIQN6 more precise height calculation when scrolling up as much as possible while keeping cursor on screen
  • [*] BULPIBEG beginnings of a module for the text editor

Change contents

  • replacement in text.lua at line 218
    [3.3023][3.3023:3068]()
    top2 = Text.previous_screen_line(top2)
    [3.3023]
    [3.3068]
    top2 = Text.previous_screen_line(top2, Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 370
    [3.563][3.563:606]()
    top2 = Text.previous_screen_line(top2)
    [3.563]
    [3.77]
    top2 = Text.previous_screen_line(top2, left, right)
  • replacement in text.lua at line 561
    [2.6636][2.6636:6679]()
    top2 = Text.previous_screen_line(top2)
    [2.6636]
    [2.6679]
    top2 = Text.previous_screen_line(top2, left, right)
  • replacement in text.lua at line 658
    [3.883][3.947:990]()
    top2 = Text.previous_screen_line(top2)
    [3.883]
    [3.925]
    top2 = Text.previous_screen_line(top2, left, right)
  • replacement in text.lua at line 882
    [3.564][3.1391:1432](),[3.1391][3.1391:1432]()
    function Text.previous_screen_line(pos2)
    [3.564]
    [3.1432]
    function Text.previous_screen_line(pos2, left, right)