add args to some functions

[?]
Jul 8, 2022, 11:22 PM
QCQTMUZ7M3BKJFTKXTTXL4TS4CAQNIUNK3LR3WQIJDU3VVTOPS6AC

Dependencies

  • [2] 62PZGSUC optimization: moving cursor to next word
  • [3] 2H67P75X switch arg for a function
  • [4] CBPV5SSI stop handling nil screen_line_starting_pos everywhere
  • [5] JJ7J4PUB some unnecessary mutations
  • [6] 3OKKTUT4 up and down arrow now moving by screen line where possible
  • [7] KECEMMMR extract couple of functions
  • [8] MDXGMZU2 disable all debug prints
  • [9] ZPUQSPQP extract a few methods
  • [10] HTWAM4NZ bugfix: scrolling in left/right movements
  • [11] YJJ4X4JG bugfix: avoid scrolling on 'end'
  • [12] GN3IF4WF bugfix: pasting newlines
  • [13] VA2ZYFFF better fix for commit 3ffc2ed8f
  • [14] U7M4M2F7 bugfix: don't rely on Screen_bottom1 while scrolling
  • [15] 242L3OQX bugfix: ensure Cursor_line is always on a text line
  • [16] T7IWZFL4 more precise scroll on paste
  • [17] 2ZYV7D3W handle tab characters
  • [18] PX7DDEMO autosave slightly less aggressively
  • [19] HOSPP2AN crisp font rendering
  • [20] NQWWTGXR switch undo/redo to ctrl- hotkeys
  • [21] VJ77YABH more efficient undo/redo
  • [22] IRCKL6VN extract scrolling logic out of insert_at_cursor
  • [23] TRNWIQN6 more precise height calculation when scrolling up as much as possible while keeping cursor on screen
  • [24] BTKAW76L rename
  • [25] XNFTJHC4 split keyboard handling between Text and Drawing
  • [26] ZHLO7K3M add args to some functions
  • [27] 3TDOZESE extract scrolling logic out of insert_return
  • [28] 2RXZ3PGO beginning of a new approach to scroll+wrap
  • [29] VC2CU2GG faster paste
  • [30] CUIV2LE5 some typos
  • [*] BULPIBEG beginnings of a module for the text editor
  • [*] OTIBCAUJ love2d scaffold

Change contents

  • replacement in text.lua at line 147
    [3.115][4.230:273](),[4.230][4.230:273]()
    Text.snap_cursor_to_bottom_of_screen()
    [3.115]
    [4.273]
    Text.snap_cursor_to_bottom_of_screen(Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 170
    [4.60][4.60:105]()
    Text.snap_cursor_to_bottom_of_screen()
    [4.60]
    [4.105]
    Text.snap_cursor_to_bottom_of_screen(Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 180
    [3.182][4.636:681](),[4.636][4.636:681]()
    Text.snap_cursor_to_bottom_of_screen()
    [3.182]
    [4.681]
    Text.snap_cursor_to_bottom_of_screen(Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 475
    [4.3562][4.47:92]()
    Text.snap_cursor_to_bottom_of_screen()
    [4.3562]
    [4.3608]
    Text.snap_cursor_to_bottom_of_screen(left, right)
  • replacement in text.lua at line 494
    [4.4678][4.93:138]()
    Text.snap_cursor_to_bottom_of_screen()
    [4.4678]
    [4.4724]
    Text.snap_cursor_to_bottom_of_screen(left, right)
  • replacement in text.lua at line 513
    [4.46][4.6500:6543](),[4.6500][4.6500:6543]()
    Text.snap_cursor_to_bottom_of_screen()
    [4.46]
    [4.6543]
    Text.snap_cursor_to_bottom_of_screen(left, right)
  • replacement in text.lua at line 540
    [2.85][2.85:128]()
    Text.snap_cursor_to_bottom_of_screen()
    [2.85]
    [4.36]
    Text.snap_cursor_to_bottom_of_screen(left, right)
  • replacement in text.lua at line 569
    [2.202][2.202:245]()
    Text.snap_cursor_to_bottom_of_screen()
    [2.202]
    [2.245]
    Text.snap_cursor_to_bottom_of_screen(left, right)
  • replacement in text.lua at line 626
    [4.1581][4.139:182]()
    Text.snap_cursor_to_bottom_of_screen()
    [4.1581]
    [4.529]
    Text.snap_cursor_to_bottom_of_screen(left, right)
  • replacement in text.lua at line 631
    [2.325][4.183:231](),[4.540][4.183:231]()
    function Text.snap_cursor_to_bottom_of_screen()
    [2.325]
    [4.62]
    function Text.snap_cursor_to_bottom_of_screen(left, right)
  • replacement in main.lua at line 536
    [4.638][4.264:309](),[4.264][4.264:309]()
    Text.snap_cursor_to_bottom_of_screen()
    [4.638]
    [4.638]
    Text.snap_cursor_to_bottom_of_screen(Margin_left, App.screen.height-Margin_right)