drop some redundant args when clearing the cache
[?]
Jul 17, 2022, 3:18 PM
LSYLEVBDBZBGLSCXTRBW46WT4TUMMSPCH7M6HSNYI5SIH2WNPYEACDependencies
- [2]
QCPXQ2E3add state arg to a few functions - [3]
2RXZ3PGObeginning of a new approach to scroll+wrap - [4]
KOYAJWE4extract a couple more methods - [5]
PLKNHYZ4extract a function - [6]
SPSW74Y5add state arg to Text.keychord_pressed - [7]
7LVK4KRDfix a failing test - [8]
2ZYV7D3Whandle tab characters - [9]
KZ5GAYRPthis fixes the immediate regression - [10]
4J2L6JMRbugfix: deleting a selection spanning pages - [11]
WOXIYUTLbugfix: manage screen_top and cursor when resizing - [12]
XNFTJHC4split keyboard handling between Text and Drawing - [13]
PX7DDEMOautosave slightly less aggressively - [14]
MYC7XR5Qbugfix: lines that aren't drawn from the start - [15]
LF7BWEG4group all editor globals - [16]
Z5HLXU4Padd state arg to a few functions - [17]
LXTTOB33extract a couple of files - [18]
R53OF3ONone bug I've repeatedly run into while testing with Moby Dick - [19]
4CTZOJPCstop pretending globals are local - [20]
CG3264MMmove - [21]
HOSPP2ANcrisp font rendering - [22]
65XHTZEKregression: couldn't do many drawing operations because line.y was reset - [23]
S2MISTTMadd state arg to a few functions - [24]
GN3IF4WFbugfix: pasting newlines - [25]
HMODUNJEscroll on backspace - [26]
PTDO2SOTadd state arg to schedule_save - [27]
AYE2VEGJextract a couple of methods - [28]
BULPIBEGbeginnings of a module for the text editor - [29]
OGUV4HSAremove some memory leaks from rendered fragments
Change contents
- replacement in text.lua at line 155
Text.clear_cache(State.lines[State.cursor1.line])Text.clear_screen_line_cache(State, State.cursor1.line) - replacement in text.lua at line 221
Text.clear_cache(State.lines[State.cursor1.line])Text.clear_screen_line_cache(State, State.cursor1.line) - replacement in text.lua at line 257
Text.clear_cache(State.lines[State.cursor1.line])Text.clear_screen_line_cache(State, State.cursor1.line) - replacement in text.lua at line 349
Text.clear_cache(State.lines[State.cursor1.line])Text.clear_cache(State.lines[State.cursor1.line+1])Text.clear_screen_line_cache(State, State.cursor1.line)Text.clear_screen_line_cache(State, State.cursor1.line+1) - replacement in text.lua at line 987
for _,line in ipairs(State.lines) dofor line_index,line in ipairs(State.lines) do - replacement in text.lua at line 990
Text.clear_cache(line)Text.clear_screen_line_cache(State, line_index) - replacement in text.lua at line 994
function Text.clear_cache(line)line.fragments = nilline.screen_line_starting_pos = nilfunction Text.clear_screen_line_cache(State, line_index)State.lines[line_index].fragments = nilState.lines[line_index].screen_line_starting_pos = nil - replacement in select.lua at line 140
Text.clear_cache(State.lines[minl])Text.clear_screen_line_cache(State, minl)