add args to some functions

[?]
Jul 8, 2022, 10:17 PM
ZHLO7K3MQNI6OMK6226SSO2Z6Z4ZXF4T73VOG36DVAG6CHR6OHWAC

Dependencies

  • [2] AOIRVVJA revert selection logic to before commit 3ffc2ed8f
  • [3] 62PZGSUC optimization: moving cursor to next word
  • [4] CPZGQT72 go through and fix similar issues
  • [5] DHI6IJCN selecting text and deleting selections
  • [6] OGUV4HSA remove some memory leaks from rendered fragments
  • [7] GCEF4N3V stop repeatedly checking for line wrapping
  • [8] ZPUQSPQP extract a few methods
  • [9] 4KOI3E6R remove some redundant checks
  • [10] 3TDOZESE extract scrolling logic out of insert_return
  • [11] KZ5GAYRP this fixes the immediate regression
  • [12] V5MJRFOZ bugfix: down arrow doesn't scroll up unnecessarily
  • [13] CG3264MM move
  • [14] KOYAJWE4 extract a couple more methods
  • [15] CVSRHMJ2 experiment: slightly adaptive scrolling
  • [16] MP2TBKU6 bugfix: crash in Text.up() after return
  • [17] VJ77YABH more efficient undo/redo
  • [18] AVLAYODP much simpler
  • [19] HTWAM4NZ bugfix: scrolling in left/right movements
  • [20] X75QPYVW move Selection1 clearing past business logic
  • [21] SVJZZDC3 snapshot - no, that's all wrong
  • [22] 2RXZ3PGO beginning of a new approach to scroll+wrap
  • [23] MDXGMZU2 disable all debug prints
  • [24] EBBFOW4X bugfix: clear selection in a couple more places
  • [25] XNFTJHC4 split keyboard handling between Text and Drawing
  • [26] YJJ4X4JG bugfix: avoid scrolling on 'end'
  • [27] AMSESRTH move some code
  • [28] PIEDOKYQ bugfix
  • [29] DLQMM265 scroll past first page
  • [30] KECEMMMR extract couple of functions
  • [31] EMHRPJ3R no, that's not right
  • [32] GN3IF4WF bugfix: pasting newlines
  • [*] BULPIBEG beginnings of a module for the text editor

Change contents

  • replacement in text.lua at line 263
    [4.23][4.277:293](),[4.8613][4.277:293](),[4.277][4.277:293]()
    Text.left()
    [4.277]
    [2.97]
    Text.left(Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 266
    [4.324][4.24:41]()
    Text.right()
    [4.324]
    [2.118]
    Text.right(Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 272
    [4.8804][4.8804:8820]()
    Text.left()
    [4.8804]
    [4.8820]
    Text.left(Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 277
    [4.8952][4.8952:8969]()
    Text.right()
    [4.8952]
    [4.369]
    Text.right(Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 280
    [4.65][4.1:22](),[4.9028][4.1:22](),[4.456][4.1:22]()
    Text.word_left()
    [4.456]
    [2.139]
    Text.word_left(Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 283
    [4.794][4.63:85]()
    Text.word_right()
    [4.794]
    [2.160]
    Text.word_right(Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 289
    [4.9221][4.9221:9242]()
    Text.word_left()
    [4.9221]
    [4.9242]
    Text.word_left(Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 294
    [4.9376][4.9376:9398]()
    Text.word_right()
    [4.9376]
    [4.1073]
    Text.word_right(Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 299
    [4.115][4.6017:6040]()
    Text.end_of_line()
    [4.115]
    [4.24]
    Text.end_of_line(Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 310
    [4.9798][4.6067:6090]()
    Text.end_of_line()
    [4.9798]
    [4.3956]
    Text.end_of_line(Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 312
    [4.3984][4.137:151]()
    Text.up()
    [4.3984]
    [2.181]
    Text.up(Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 315
    [4.170][4.9973:9989](),[4.9973][4.9973:9989]()
    Text.down()
    [4.4463]
    [2.202]
    Text.down(Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 321
    [4.10118][4.10118:10132]()
    Text.up()
    [4.10118]
    [4.10132]
    Text.up(Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 326
    [4.10263][4.61:77](),[4.4463][4.61:77]()
    Text.down()
    [4.10263]
    [4.1]
    Text.down(Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 328
    [4.33][4.173:191]()
    Text.pageup()
    [4.33]
    [2.223]
    Text.pageup(Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 331
    [4.212][4.10381:10401](),[4.10381][4.10381:10401]()
    Text.pagedown()
    [4.893]
    [2.244]
    Text.pagedown(Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 337
    [4.10534][4.10534:10552]()
    Text.pageup()
    [4.10534]
    [4.10552]
    Text.pageup(Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 342
    [4.10687][4.20:40](),[4.893][4.20:40]()
    Text.pagedown()
    [4.10687]
    [4.182]
    Text.pagedown(Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 356
    [4.51][4.51:74]()
    function Text.pageup()
    [4.51]
    [4.3]
    function Text.pageup(left, right)
  • replacement in text.lua at line 380
    [4.88][4.858:883]()
    function Text.pagedown()
    [4.88]
    [4.117]
    function Text.pagedown(left, right)
  • replacement in text.lua at line 405
    [4.1219][4.88:107](),[4.88][4.88:107]()
    function Text.up()
    [4.1219]
    [4.107]
    function Text.up(left, right)
  • replacement in text.lua at line 456
    [4.2682][4.2682:2703]()
    function Text.down()
    [4.2682]
    [4.2703]
    function Text.down(left, right)
  • replacement in text.lua at line 508
    [4.6260][4.6260:6288]()
    function Text.end_of_line()
    [4.6260]
    [4.6288]
    function Text.end_of_line(left, right)
  • replacement in text.lua at line 517
    [4.4936][4.4936:4962]()
    function Text.word_left()
    [4.4936]
    [4.4962]
    function Text.word_left(left, right)
  • replacement in text.lua at line 519
    [4.4978][4.4978:4994]()
    Text.left()
    [4.4978]
    [4.4994]
    Text.left(left, right)
  • replacement in text.lua at line 530
    [4.5252][4.5252:5279]()
    function Text.word_right()
    [4.5252]
    [4.5279]
    function Text.word_right(left, right)
  • replacement in text.lua at line 544
    [4.47][4.47:68]()
    function Text.left()
    [4.47]
    [4.68]
    function Text.left(left, right)
  • replacement in text.lua at line 566
    [4.579][4.579:601]()
    function Text.right()
    [4.579]
    [3.129]
    function Text.right(left, right)