standardize scroll check in a few places

[?]
Aug 17, 2022, 4:40 PM
AYS3Z3TXOXF5ZJDLSBWEUIOWXJEZXLXEBZS5ZRJC2IRDVM7KTSTAC

Dependencies

  • [2] ODLKHO7B switch to line index in a function
  • [3] 2ZYV7D3W handle tab characters
  • [4] G6OYAYHU paste in text with M-v
  • [5] 3MAZEQK5 add state arg to Text.textinput
  • [6] SQLVYKVJ rename
  • [7] 3TDOZESE extract scrolling logic out of insert_return
  • [8] XNFTJHC4 split keyboard handling between Text and Drawing
  • [9] BYG5CEMV support for naming points
  • [10] PFT5Y2ZY move
  • [11] IRCKL6VN extract scrolling logic out of insert_at_cursor
  • [12] GN3IF4WF bugfix: pasting newlines
  • [13] 73OCE2MC after much struggle, a brute-force undo
  • [14] DRFE3B3Z mouse buttons are integers, not strings
  • [15] SPSW74Y5 add state arg to Text.keychord_pressed
  • [16] 5UG5PQ6K undo commit 861c57b533
  • [17] VJ77YABH more efficient undo/redo
  • [18] Z5HLXU4P add state arg to a few functions
  • [19] QCPXQ2E3 add state arg to a few functions
  • [20] UHB4GARJ left/right margin -> left/right coordinates
  • [21] PX7DDEMO autosave slightly less aggressively
  • [22] LF7BWEG4 group all editor globals
  • [*] BULPIBEG beginnings of a module for the text editor

Change contents

  • replacement in text.lua at line 159
    [3.37][3.236:302](),[3.28][3.236:302]()
    if State.cursor_y >= App.screen.height - State.line_height then
    [3.37]
    [2.64]
    if State.cursor_y > App.screen.height - State.line_height then
  • replacement in text.lua at line 183
    [3.192][3.192:261]()
    if (State.cursor_y + State.line_height) > App.screen.height then
    [3.192]
    [3.15259]
    if State.cursor_y > App.screen.height - State.line_height then
  • replacement in text.lua at line 192
    [3.509][3.652:720](),[3.195][3.652:720]()
    if State.cursor_y >= App.screen.height - State.line_height then
    [3.509]
    [2.135]
    if State.cursor_y > App.screen.height - State.line_height then