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