couple of accidental globals
[?]
Aug 18, 2022, 8:37 PM
KV7GGVERB4IOIWQJUK2RYBZZEUDMLCAUV3DIX7J7JISDCYRIQCGACDependencies
- [2]
GNQC72UXgeneralize a function - [3]
TGHAJBESuse line cache for drawings as well - [4]
ZPUQSPQPextract a few methods - [5]
LF7BWEG4group all editor globals - [6]
ILOA5BYFseparate data structure for each line's cache data - [7]
NHNP76LGswap return values - [8]
Z5HLXU4Padd state arg to a few functions - [9]
2LEXWUW3get rid of some ridiculous code - [10]
MXA3RZYKdeduce left/right from state where possible - [*]
BULPIBEGbeginnings of a module for the text editor
Change contents
- replacement in text.lua at line 454
new_screen_line_starting_pos = State.line_cache[State.cursor1.line].screen_line_starting_pos[screen_line_index-1]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
new_screen_line_starting_pos = State.line_cache[State.cursor1.line].screen_line_starting_pos[screen_line_index+1]local new_screen_line_starting_pos = State.line_cache[State.cursor1.line].screen_line_starting_pos[screen_line_index+1]