couple of accidental globals
[?]
Aug 18, 2022, 8:37 PM
KV7GGVERB4IOIWQJUK2RYBZZEUDMLCAUV3DIX7J7JISDCYRIQCGACDependencies
- [2]
GNQC72UXgeneralize a function - [3]
LF7BWEG4group all editor globals - [4]
Z5HLXU4Padd state arg to a few functions - [5]
ZPUQSPQPextract a few methods - [6]
ILOA5BYFseparate data structure for each line's cache data - [7]
MXA3RZYKdeduce left/right from state where possible - [8]
TGHAJBESuse line cache for drawings as well - [9]
NHNP76LGswap return values - [10]
2LEXWUW3get rid of some ridiculous code - [*]
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]