Merge text.love
[?]
Sep 17, 2023, 4:29 PM
OTYGZVPWJTIIVUFLAIUTXN2CWXETICB6PLUYWXVZNXS3WYH4UAZQCDependencies
- [2]
M5JXTW56Merge text.love - [3]
I4S4EFYXMerge lines.love - [4]
6LJZN727handle chords - [5]
QD4LOFQRMerge text.love - [6]
T7EAACC5bugfix to the helper I added yesterday - [7]
7VGDIPLCmore robust state validation - [8]
CE4LZV4Tdrop last couple of manual tests - [9]
2344TV56Merge lines.love - [10]
ED4Z6ORCcleaner API for file-system access - [11]
FM5LDKGTMerge text.love - [12]
D2GCFTTTclean up repl functionality - [13]
KKMFQDR4editing source code from within the app - [14]
2L5MEZV3experiment: new edit namespace - [15]
AF253GHLbugfix - [16]
K2X6G75Zstart writing some tests for drawings - [17]
NVSC4N4Kchange a helper slightly - [18]
PJ5PQAQErecord support for multiple versions - [19]
ZLJYLPOTMerge lines.love - [20]
R5QXEHUIsomebody stop me - [21]
ONHKBLLCMerge lines.love - [22]
OTIBCAUJlove2d scaffold - [23]
XX7G2FFJintermingle freehand line drawings with text - [24]
R56CKHYZMerge text.love - [25]
IGBTDA6YMerge text.love - [26]
X43ZIKR3Merge text.love - [27]
VXORMHMEdelete experimental REPL - [28]
OGUV4HSAremove some memory leaks from rendered fragments - [29]
RSZD5A7Gforgot to add json.lua - [30]
4YDBYBA4clean up memory leak experiments - [31]
LXTTOB33extract a couple of files - [32]
MD3W5IRAnew fork: rip out drawing support - [33]
T4FRZSYLdelete an ancient, unused file - [34]
2CTN2IEFMerge lines.love - [35]
AVTNUQYRbasic test-enabled framework - [36]
4SR3Z4Y3document the version of LÖVE I've been using - [37]
U3MJNFUYMerge lines.love - [38]
2TQUKHBCMerge lines.love - [39]
2CFLXLIEMerge text.love - [40]
VP5KC4XZMerge lines.love - [41]
REAIVN7WMerge lines.love - [42]
MU2HIRR6Merge lines.love - [43]
Q6RXCILQMerge text.love - [44]
KMSL74GAsupport selections in the source editor - [45]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [46]
FS2ITYYHrecord a known issue - [47]
3QNOKBFMbeginnings of a test harness - [48]
UAYCSFSKMerge text.love - [49]
JOPVPUSAediting source code from within the app - [50]
SGMA5JLEsave the list of tests in repo - [51]
SW7BSBMJseveral bugfixes in saving/loading cursor position - [52]
K74U4BAUMerge lines.love - [53]
3PSFWAILMerge lines.love - [54]
LWPFEZBIMerge lines.love - [55]
73OCE2MCafter much struggle, a brute-force undo - [56]
ORKN6EOBMerge lines.love - [57]
VXRYVZ74Merge text.love - [58]
RU4HIK43Merge lines.love - [59]
VBU5YHLRMerge lines.love - [60]
TLOAPLBJadd a license - [61]
BLWAYPKVextract a module - [62]
VHQCNMARseveral more modules - [63]
BULPIBEGbeginnings of a module for the text editor - [64]
TVCPXAAUrename - [65]
66X36NZNa little more prose describing manual_tests - [66]
36Z442IVback to commit 8123959e52f without code editing - [67]
N2NUGNN4include a brief reference enabling many useful apps - [68]
2JLMNZZIMerge text.love - [69]
WB6SIB7HMerge lines.love - [70]
34BZ5ZKNMerge lines.love - [71]
VHUNJHXBMerge lines.love - [72]
B6DS4GZCMerge lines.love - [73]
RO35V4H4Merge text.love
Change contents
- file deletion: source_edit.lua source_edit.lua
if State.cursor1.line >= #State.lines thenbreakendif State.lines[State.cursor1.line].mode == 'text' thenbreakendState.cursor1.line = State.cursor1.line+1State.cursor1.pos = 1endend-- cursor loc in particular differs from other locs in one way:-- pos might occur just after end of linefunction edit.invalid_cursor1(State)local cursor1 = State.cursor1if cursor1.line > #State.lines then return true endlocal l = State.lines[cursor1.line]if l.mode ~= 'text' then return false end -- pos is irrelevant to validity for a drawing linereturn cursor1.pos > #State.lines[cursor1.line].data + 1endfunction edit.cursor_on_text(State)return State.cursor1.line <= #State.linesand State.lines[State.cursor1.line].mode == 'text'endState.cursor1 = {line=1, pos=1}edit.put_cursor_on_next_text_line(State)or edit.invalid_cursor1(State)or not edit.cursor_on_text(State)or not Text.le1(State.screen_top1, State.cursor1) thenState.screen_top1 = {line=1, pos=1} - edit in edit.lua at line 84
State.cursor1 = {line=1, pos=1} - resurrect zombie in edit.lua at line 85[4.390]→[4.518:565](∅→∅),[4.955]→[4.518:565](∅→∅),[4.955]→[4.518:565](∅→∅),[4.1348]→[4.518:565](∅→∅),[4.518]→[4.518:565](∅→∅),[4.518]→[4.518:565](∅→∅),[4.955]→[4.518:565](∅→∅)
endendfunction edit.invalid1(State, loc1)