resolve conflicts
Dependencies
- [2]
UPQJIFDPhide file numbers in output editor - [3]
GSZOSB6Ybugfix: keep wrapping lines within window boundaries - [4]
MPLM5UH7resolve conflicts - [5]
ICS45BILeditor widget now takes a bottom margin - [6]
3ZSUBI57drop some redundant args from Text.draw - [7]
LF7BWEG4group all editor globals - [8]
4GYPLUDYstreamline the interface for Text.draw - [9]
2TCIWW6Zstop caching starty - [10]
ELJNEPW2simplify cursor-on-screen check - [11]
G2SVT3ROMerge text0 - [12]
I64IPGJXavoid saving fragments in lines - [13]
FKNXK2OAswitch to line index in a function - [14]
EKKFWP4Dbugfix: couple of margin-relative computations - [15]
QLTJG7Q3indent - [16]
QCPXQ2E3add state arg to a few functions - [17]
UHB4GARJleft/right margin -> left/right coordinates - [18]
SDEY7LFJrename a variable - [19]
PWTRH67VMerge lines.love - [20]
MXA3RZYKdeduce left/right from state where possible - [21]
ZPUQSPQPextract a few methods - [22]
5OALPNN3add args to some functions - [23]
BW2IUB3Kkeep all text cache writes inside text.lua - [24]
CUFW4EJLreorganize app.lua and its comments - [25]
OV6FE23RMerge text0 - [26]
ZS5IYZH5stop caching screen_bottom1 - [27]
HALS7E5Umore clearly skip prints before screen top - [28]
R2ASHK5Cfix a bad merge - [29]
KOYAJWE4extract a couple more methods - [30]
NSM73TX3crap, fix some final changes in the source editor - [31]
GCEF4N3Vstop repeatedly checking for line wrapping - [32]
4NFSODHHMerge text0 - [33]
36Z442IVback to commit 8123959e52f without code editing - [34]
2CTN2IEFMerge lines.love - [35]
H2DPLWMVsnapshot: wrapping long lines at word boundaries - [36]
MZ3DMYPDstart sketching out a scrollbar - [37]
KZ5GAYRPthis fixes the immediate regression - [38]
Z5HLXU4Padd state arg to a few functions - [39]
CRBLAWBOresolve conflicts - [40]
WOXIYUTLbugfix: manage screen_top and cursor when resizing - [*]
BULPIBEGbeginnings of a module for the text editor - [*]
2L5MEZV3experiment: new edit namespace - [*]
3QNOKBFMbeginnings of a test harness
Change contents
- resurrect zombie in text.lua at line 10
-- return y for the next line - edit in text.lua at line 11[4.1594]→[5.5:73](∅→∅),[5.83]→[5.5:73](∅→∅),[5.83]→[5.5:73](∅→∅),[5.73]→[4.1595:1635](∅→∅),[5.73]→[4.1595:1635](∅→∅)
function Text.draw(State, line_index, y, startpos, fg, hide_cursor)--? print('text.draw', line_index, y) - resurrect zombie in text.lua at line 11
function Text.draw(State, line_index, y, startpos, fg, hide_cursor, show_line_numbers) - resolve order conflict in text.lua at line 11
- edit in text.lua at line 12
--? print('text.draw', line_index, y) - edit in text.lua at line 31
--? print(i) - replacement in text.lua at line 397
if y + State.line_height > App.screen.height then break endif y + State.line_height > State.bottom then break end - edit in text.lua at line 406
local y = State.bottom - State.line_height - resurrect zombie in text.lua at line 406
-- does not modify State (except to populate line_cache)local loc2 = Text.to2(State, State.screen_top1) - edit in text.lua at line 408
local y = State.bottom - State.line_height - replacement in text.lua at line 432
if y + State.line_height > App.screen.height then break endif y + State.line_height > State.bottom then break end - edit in text.lua at line 967
pos=Text.to_pos_on_line(State, State.screen_bottom1.line, State.right-5, State.bottom-5), - resurrect zombie in edit.lua at line 122
if y + State.line_height > State.bottom then break end - replacement in edit.lua at line 128
y, screen_bottom1.pos = Text.draw(State, line_index, y, startpos, fg, hide_cursor, show_line_numbers)y = Text.draw(State, line_index, y, startpos, fg, hide_cursor)y = Text.draw(State, line_index, y, startpos, fg, hide_cursor, show_line_numbers) - replacement in app.lua at line 255
--? App.screen.init{width=120, height=60}--? App.screen.init{width=120, height=60} -- debug: run a single test at a time like these 4 lines - edit in app.lua at line 259[5.748]→[4.1755:1755](∅→∅),[4.1755]→[5.8666:8755](∅→∅),[5.842]→[5.8666:8755](∅→∅),[5.8755]→[5.310:345](∅→∅)
--? App.initialize_for_test() -- debug: run a single test at a time like these 2 lines--? test_click_below_all_lines() - resolve order conflict in app.lua at line 259
- replacement in 0035-compute_scrollbar at line 6
local bot = state.line_cache[state.screen_bottom1.line].start_screen_line_indexlocal screen_bottom1 = Text.screen_bottom1(state)local bot = state.line_cache[screen_bottom1.line].start_screen_line_index