optimization: moving cursor to next word

[?]
Jul 5, 2022, 6:27 PM
62PZGSUCEXJOCVWEOOENSDJITJFR27BGW7BPGFYVD3E5M6446RQQC

Dependencies

  • [2] YJJ4X4JG bugfix: avoid scrolling on 'end'
  • [3] ZPUQSPQP extract a few methods
  • [4] XNFTJHC4 split keyboard handling between Text and Drawing
  • [5] SVJZZDC3 snapshot - no, that's all wrong
  • [6] MP2TBKU6 bugfix: crash in Text.up() after return
  • [7] 2RXZ3PGO beginning of a new approach to scroll+wrap
  • [8] DHI6IJCN selecting text and deleting selections
  • [9] HTWAM4NZ bugfix: scrolling in left/right movements
  • [10] DLQMM265 scroll past first page
  • [11] PYGMASTV disable some debug prints
  • [12] TRNWIQN6 more precise height calculation when scrolling up as much as possible while keeping cursor on screen
  • [13] MDXGMZU2 disable all debug prints
  • [14] ESETRNLB bugfix: printing the first part of a line at the bottom made it seem non-wrapping
  • [15] V5MJRFOZ bugfix: down arrow doesn't scroll up unnecessarily
  • [16] KECEMMMR extract couple of functions
  • [17] PR4KIAZD first stab at equally hacky cursor down support
  • [*] BULPIBEG beginnings of a module for the text editor
  • [*] 242L3OQX bugfix: ensure Cursor_line is always on a text line
  • [*] BTKAW76L rename

Change contents

  • replacement in text.lua at line 532
    [3.5295][3.5295:5312]()
    Text.right()
    [3.5295]
    [3.5312]
    Text.right_without_scroll()
  • edit in text.lua at line 538
    [3.5536]
    [3.36]
    end
    if Text.cursor_past_screen_bottom() then
    Text.snap_cursor_to_bottom_of_screen()
  • edit in text.lua at line 567
    [3.601]
    [3.601]
    Text.right_without_scroll()
    if Text.cursor_past_screen_bottom() then
    Text.snap_cursor_to_bottom_of_screen()
    end
    end
    function Text.right_without_scroll()
  • edit in text.lua at line 587
    [3.1109][3.1321:1327](),[3.1215][3.1321:1327](),[3.1453][3.1321:1327](),[3.1321][3.1321:1327](),[3.1327][2.47:90](),[2.90][3.6870:6913](),[3.6870][3.6870:6913]()
    end
    if Text.cursor_past_screen_bottom() then
    Text.snap_cursor_to_bottom_of_screen()
  • edit in text.lua at line 630
    [20.540]
    [21.183]
    -- should never modify Cursor1