resolve conflicts
Dependencies
- [2]
CZ6X73VYmerge bugfix - [3]
S7CSVBHZresolve conflicts - [4]
3PSFWAILMerge lines.love - [5]
TVCPXAAUrename - [6]
JOPVPUSAediting source code from within the app - [7]
R6MNUXDJpijul bug - [8]
4YDBYBA4clean up memory leak experiments - [9]
TLOAPLBJadd a license - [10]
XX7G2FFJintermingle freehand line drawings with text - [11]
K2X6G75Zstart writing some tests for drawings - [12]
R56CKHYZMerge text.love - [13]
VP5KC4XZMerge lines.love - [14]
A4BSGS2CMerge lines.love - [15]
TOXPJJYYresolve conflicts - [16]
BULPIBEGbeginnings of a module for the text editor - [17]
D2GCFTTTclean up repl functionality - [18]
VHQCNMARseveral more modules - [19]
4SR3Z4Y3document the version of LÖVE I've been using - [20]
ZJFSVE47Merge text.love - [21]
OTYGZVPWMerge text.love - [22]
CAG7PP5YMerge text.love - [23]
SLMSBVJWresolve conflicts - [24]
U3MJNFUYMerge lines.love - [25]
2CFLXLIEMerge text.love - [26]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [27]
KKMFQDR4editing source code from within the app - [28]
73OCE2MCafter much struggle, a brute-force undo - [29]
RXMHAZ6Vresolve conflicts - [30]
QXXISTGEresolve conflicts - [31]
7LXXQBNEresolve conflicts - [32]
66X36NZNa little more prose describing manual_tests - [33]
BLWAYPKVextract a module - [34]
KMSL74GAsupport selections in the source editor - [35]
LWPFEZBIMerge lines.love - [36]
SGMA5JLEsave the list of tests in repo - [37]
6LJZN727handle chords - [38]
T4FRZSYLdelete an ancient, unused file - [39]
CE4LZV4Tdrop last couple of manual tests - [40]
I4S4EFYXMerge lines.love - [41]
34BZ5ZKNMerge lines.love - [42]
6VJTQKW7start supporting LÖVE v12 - [43]
MBAJPTDJresolve conflicts - [44]
4Y2QDDAZresolve conflicts - [45]
3G723RV5Merge text.love - [46]
VXRYVZ74Merge text.love - [47]
LXTTOB33extract a couple of files - [48]
2CTN2IEFMerge lines.love - [49]
PJ5PQAQErecord support for multiple versions - [50]
3QNOKBFMbeginnings of a test harness - [51]
KKQKPGCIresolve conflicts - [52]
2L5MEZV3experiment: new edit namespace - [53]
36Z442IVback to commit 8123959e52f without code editing - [54]
FS2ITYYHrecord a known issue - [55]
OGUV4HSAremove some memory leaks from rendered fragments - [56]
VXORMHMEdelete experimental REPL - [57]
VHUNJHXBMerge lines.love - [58]
TBTRYEBPMerge lines.love - [59]
R5QXEHUIsomebody stop me - [60]
ECBDENZ4Merge text.love - [61]
ZLJYLPOTMerge lines.love - [62]
OTIBCAUJlove2d scaffold - [63]
M5JXTW56Merge text.love - [64]
ED4Z6ORCcleaner API for file-system access - [65]
N2NUGNN4include a brief reference enabling many useful apps - [66]
KJLZCK2Rresolve conflicts - [67]
RAXUQQ6ZMerge lines.love - [68]
KQ22RW43resolve conflicts - [69]
RSZD5A7Gforgot to add json.lua - [70]
VBU5YHLRMerge lines.love - [71]
ORKN6EOBMerge lines.love - [72]
VLTU33KWresolve conflicts - [73]
SYWQBIO5resolve conflicts - [74]
AVTNUQYRbasic test-enabled framework - [75]
2TQUKHBCMerge lines.love
Change contents
- file deletion: source_text_tests.lua source_text_tests.lua
endfunction test_search_downwards_from_end_of_line()App.screen.init{width=120, height=60}Editor_state = edit.initialize_test_state()Editor_state.lines = load_array{'abc', 'def', 'ghi'}Text.redraw_all(Editor_state)Editor_state.cursor1 = {line=1, pos=4}Editor_state.screen_top1 = {line=1, pos=1}edit.draw(Editor_state)-- search for empty stringedit.run_after_keychord(Editor_state, 'C-f', 'f')edit.run_after_keychord(Editor_state, 'down', 'down')-- no crashendfunction test_search_downwards_from_final_pos_of_line()App.screen.init{width=120, height=60}Editor_state = edit.initialize_test_state()Editor_state.lines = load_array{'abc', 'def', 'ghi'}Text.redraw_all(Editor_state)Editor_state.cursor1 = {line=1, pos=3}Editor_state.screen_top1 = {line=1, pos=1}edit.draw(Editor_state)-- search for empty stringedit.run_after_keychord(Editor_state, 'C-f', 'f')edit.run_after_keychord(Editor_state, 'down', 'down')-- no crashend - file deletion: source_edit.lua source_edit.lua
local line = State.cursor1.linewhile line < #State.lines doline = line+1if State.lines[line].mode == 'text' thenState.cursor1.line = lineState.cursor1.pos = 1endendfunction edit.put_cursor_on_next_text_line_wrapping_around_if_necessary(State)local line = State.cursor1.linelocal max = #State.linesfor _ = 1, max-1 doline = (line+1) % maxif State.lines[line].mode == 'text' thenState.cursor1.line = lineState.cursor1.pos = 1endendfunction edit.put_cursor_on_next_text_loc_wrapping_around_if_necessary(State)local cursor_line = State.lines[State.cursor1.line].dataif State.cursor1.pos <= utf8.len(cursor_line) thenState.cursor1.pos = State.cursor1.pos + 1elseedit.put_cursor_on_next_text_line_wrapping_around_if_necessary(State)State.cursor = deepcopy(State.search_backup.cursor)State.screen_top = deepcopy(State.search_backup.screen_top)elseif chord == 'down' thenif #State.search_term > 0 thenedit.put_cursor_on_next_text_loc_wrapping_around_if_necessary(State)Text.search_next(State)endelseif chord == 'up' thenText.search_previous(State)endreturnelseif chord == 'C-f' thenState.search_term = ''State.search_backup = {Text.search_next(State)endendbreakendbreakend