couple of accidental globals

[?]
Aug 18, 2022, 8:37 PM
KV7GGVERB4IOIWQJUK2RYBZZEUDMLCAUV3DIX7J7JISDCYRIQCGAC

Dependencies

  • [2] GNQC72UX generalize a function
  • [3] TGHAJBES use line cache for drawings as well
  • [4] ZPUQSPQP extract a few methods
  • [5] LF7BWEG4 group all editor globals
  • [6] ILOA5BYF separate data structure for each line's cache data
  • [7] NHNP76LG swap return values
  • [8] Z5HLXU4P add state arg to a few functions
  • [9] 2LEXWUW3 get rid of some ridiculous code
  • [10] MXA3RZYK deduce left/right from state where possible
  • [*] BULPIBEG beginnings of a module for the text editor

Change contents

  • replacement in text.lua at line 454
    [3.1956][3.451:569]()
    new_screen_line_starting_pos = State.line_cache[State.cursor1.line].screen_line_starting_pos[screen_line_index-1]
    [3.1956]
    [3.5473]
    local new_screen_line_starting_pos = State.line_cache[State.cursor1.line].screen_line_starting_pos[screen_line_index-1]
  • replacement in text.lua at line 494
    [3.208][3.570:688](),[2.224][3.570:688](),[3.1605][3.570:688]()
    new_screen_line_starting_pos = State.line_cache[State.cursor1.line].screen_line_starting_pos[screen_line_index+1]
    [2.224]
    [3.4192]
    local new_screen_line_starting_pos = State.line_cache[State.cursor1.line].screen_line_starting_pos[screen_line_index+1]