resolve conflicts
Dependencies
- [2]
YF2ATH2QMerge lines.love - [3]
WKXJNESIresolve conflicts - [4]
3MJ2PYMWresolve conflicts - [5]
GJ4LBCIEstreamline button.lua - [6]
7YGYHOEOMerge lines.love - [7]
LNUHQOGHstart passing in Editor_state explicitly - [8]
Z3TDYADAmouse button state in source editor - [9]
BLWAYPKVextract a module - [10]
CE4LZV4Tdrop last couple of manual tests - [11]
XX7G2FFJintermingle freehand line drawings with text - [12]
RSZD5A7Gforgot to add json.lua - [13]
ED4Z6ORCcleaner API for file-system access - [14]
BULPIBEGbeginnings of a module for the text editor - [15]
UD7HNQL7purge unused button infrastructure - [16]
OGUV4HSAremove some memory leaks from rendered fragments - [17]
2L5MEZV3experiment: new edit namespace - [18]
VHUNJHXBMerge lines.love - [19]
TBTRYEBPMerge lines.love - [20]
VXORMHMEdelete experimental REPL - [21]
R5QXEHUIsomebody stop me - [22]
YXQOITYSMerge lines.love - [23]
TLOAPLBJadd a license - [24]
6D5MOJS4allow buttons to interrupt events - [25]
6XCJX4DZbugfix: inscript's bug - [26]
4YDBYBA4clean up memory leak experiments - [27]
2CTN2IEFMerge lines.love - [28]
ORKN6EOBMerge lines.love - [29]
VP5KC4XZMerge lines.love - [30]
TVCPXAAUrename - [31]
LWPFEZBIMerge lines.love - [32]
R2ASHK5Cfix a bad merge - [33]
D2GCFTTTclean up repl functionality - [34]
JOPVPUSAediting source code from within the app - [35]
KMSL74GAsupport selections in the source editor - [36]
ONHKBLLCMerge lines.love - [37]
KKQKPGCIresolve conflicts - [38]
T4FRZSYLdelete an ancient, unused file - [39]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [40]
REAIVN7WMerge lines.love - [41]
OTIBCAUJlove2d scaffold - [42]
73OCE2MCafter much struggle, a brute-force undo - [43]
K6DTOGOQflip return value of button handlers - [44]
34BZ5ZKNMerge lines.love - [45]
AVTNUQYRbasic test-enabled framework - [46]
D4B52CQ2Merge lines.love - [47]
3QNOKBFMbeginnings of a test harness - [48]
N2NUGNN4include a brief reference enabling many useful apps - [49]
3PSFWAILMerge lines.love - [50]
K2X6G75Zstart writing some tests for drawings - [51]
3XNFQDDNMerge lines.love - [52]
2TQUKHBCMerge lines.love - [53]
6LJZN727handle chords - [54]
ZLJYLPOTMerge lines.love - [55]
5SM6DRHKport inscript's bugfix to source editor - [56]
6VJTQKW7start supporting LÖVE v12 - [57]
RU4HIK43Merge lines.love - [58]
XZ6QVCTTmanually maintain mouse button press state - [59]
LXTTOB33extract a couple of files - [60]
4SR3Z4Y3document the version of LÖVE I've been using - [61]
SGMA5JLEsave the list of tests in repo - [62]
66X36NZNa little more prose describing manual_tests - [63]
FS2ITYYHrecord a known issue - [64]
KKMFQDR4editing source code from within the app - [65]
CSXIZ4FAresolve conflicts - [66]
VHQCNMARseveral more modules
Change contents
- file deletion: source_text_tests.lua source_text_tests.lua
edit.draw(Editor_state)edit.run_after_mouse_press(Editor_state, Editor_state.left+8,5, 1)-- selection is at screen topcheck(Editor_state.selection1.line ~= nil, 'selection:line-not-nil')check_eq(Editor_state.selection1.line, 2, 'selection:line')check_eq(Editor_state.selection1.pos, 3, 'selection:pos')endfunction test_select_text_using_mouse_starting_below_text()-- I'd like to test what happens when a mouse click is below some page of-- text, potentially even in the middle of a line.-- However, it's brittle to set up a text line boundary just right.-- So I'm going to just check things below the bottom of the final line of-- text when it's in the middle of the screen.-- final screen line ends in the middle of screenApp.screen.init{width=50, height=60}Editor_state = edit.initialize_test_state()Editor_state.lines = load_array{'abcde'}Text.redraw_all(Editor_state)Editor_state.cursor1 = {line=1, pos=1}Editor_state.screen_top1 = {line=1, pos=1}Editor_state.screen_bottom1 = {}edit.draw(Editor_state)local y = Editor_state.topApp.screen.check(y, 'ab', 'baseline:screen:1')y = y + Editor_state.line_heightApp.screen.check(y, 'cde', 'baseline:screen:2')-- press mouse above first line of textedit.run_after_mouse_press(Editor_state, 5,App.screen.height-5, 1)-- selection is past bottom-most text in screencheck(Editor_state.selection1.line ~= nil, 'selection:line-not-nil')check_eq(Editor_state.selection1.line, 1, 'selection:line')check_eq(Editor_state.selection1.pos, 6, 'selection:pos')end - file deletion: source_edit.lua source_edit.lua
if mouse_press_consumed_by_any_button(State, x,y, mouse_button) then-- press on a button and it returned 'true' to short-circuitreturnend - edit in source_text_tests.lua at line 884
edit.draw(Editor_state) - replacement in source_edit.lua at line 242[6.436]→[6.157280:157359](∅→∅),[6.4572]→[6.157280:157359](∅→∅),[6.8954]→[6.157280:157359](∅→∅),[6.20112]→[6.157280:157359](∅→∅),[6.157280]→[6.157280:157359](∅→∅)
if mouse_press_consumed_by_any_button_handler(State, x,y, mouse_button) thenif mouse_press_consumed_by_any_button(State, x,y, mouse_button) then - edit in edit.lua at line 453[6.12430]→[3.91:91](∅→∅),[6.2254]→[5.266:337](∅→∅),[6.2254]→[5.266:337](∅→∅),[6.2254]→[5.266:337](∅→∅)
if mouse_press_consumed_by_any_button(State, x,y, mouse_button) then - resolve order conflict in edit.lua at line 453[6.12430]