resolve conflicts
Dependencies
- [2]
D2TYFYG2Merge text.love - [3]
GFBOJWNEresolve conflicts - [4]
CSXIZ4FAresolve conflicts - [5]
MJ4G2R3Yresolve conflicts - [6]
TFUNIT6Mresolve conflicts - [7]
6LJZN727handle chords - [8]
VXORMHMEdelete experimental REPL - [9]
VXRYVZ74Merge text.love - [10]
JOPVPUSAediting source code from within the app - [11]
VHUNJHXBMerge lines.love - [12]
X43ZIKR3Merge text.love - [13]
AVTNUQYRbasic test-enabled framework - [14]
6VJTQKW7start supporting LÖVE v12 - [15]
2L5MEZV3experiment: new edit namespace - [16]
ORKN6EOBMerge lines.love - [17]
4SR3Z4Y3document the version of LÖVE I've been using - [18]
34BZ5ZKNMerge lines.love - [19]
KKMFQDR4editing source code from within the app - [20]
4YDBYBA4clean up memory leak experiments - [21]
ED4Z6ORCcleaner API for file-system access - [22]
D2GCFTTTclean up repl functionality - [23]
VHQCNMARseveral more modules - [24]
36Z442IVback to commit 8123959e52f without code editing - [25]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [26]
OTIBCAUJlove2d scaffold - [27]
K2X6G75Zstart writing some tests for drawings - [28]
R5QXEHUIsomebody stop me - [29]
CE4LZV4Tdrop last couple of manual tests - [30]
2CFLXLIEMerge text.love - [31]
TLOAPLBJadd a license - [32]
LWPFEZBIMerge lines.love - [33]
BLWAYPKVextract a module - [34]
KKQKPGCIresolve conflicts - [35]
SGMA5JLEsave the list of tests in repo - [36]
VLTU33KWresolve conflicts - [37]
73OCE2MCafter much struggle, a brute-force undo - [38]
CAG7PP5YMerge text.love - [39]
3PSFWAILMerge lines.love - [40]
KMSL74GAsupport selections in the source editor - [41]
FM5LDKGTMerge text.love - [42]
OGUV4HSAremove some memory leaks from rendered fragments - [43]
XX7G2FFJintermingle freehand line drawings with text - [44]
66X36NZNa little more prose describing manual_tests - [45]
3QNOKBFMbeginnings of a test harness - [46]
3MJ2PYMWresolve conflicts - [47]
D4B52CQ2Merge lines.love - [48]
N2NUGNN4include a brief reference enabling many useful apps - [49]
2CTN2IEFMerge lines.love - [50]
QD4LOFQRMerge text.love - [51]
Q6RXCILQMerge text.love - [52]
TBTRYEBPMerge lines.love - [53]
FS2ITYYHrecord a known issue - [54]
RU4HIK43Merge lines.love - [55]
ONHKBLLCMerge lines.love - [56]
T4FRZSYLdelete an ancient, unused file - [57]
LXTTOB33extract a couple of files - [58]
PJ5PQAQErecord support for multiple versions - [59]
TVCPXAAUrename - [60]
RSZD5A7Gforgot to add json.lua - [61]
BULPIBEGbeginnings of a module for the text editor - [62]
ZLJYLPOTMerge lines.love - [63]
VP5KC4XZMerge lines.love - [64]
M5JXTW56Merge text.love
Change contents
- file deletion: source_text.lua source_text.lua
assert(false, ('Text.offset(%d) called on a string of length %d (byte size %d); this is likely a failure to handle utf8\n\n^%s$\n'):format(pos1, utf8.len(s), #s, s))end - 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