Merge text.love
[?]
Sep 17, 2023, 4:29 PM
OTYGZVPWJTIIVUFLAIUTXN2CWXETICB6PLUYWXVZNXS3WYH4UAZQCDependencies
- [2]
M5JXTW56Merge text.love - [3]
I4S4EFYXMerge lines.love - [4]
2CFLXLIEMerge text.love - [5]
2JLMNZZIMerge text.love - [6]
KKMFQDR4editing source code from within the app - [7]
K2X6G75Zstart writing some tests for drawings - [8]
JOPVPUSAediting source code from within the app - [9]
VBU5YHLRMerge lines.love - [10]
ED4Z6ORCcleaner API for file-system access - [11]
3QNOKBFMbeginnings of a test harness - [12]
34BZ5ZKNMerge lines.love - [13]
VXORMHMEdelete experimental REPL - [14]
T7EAACC5bugfix to the helper I added yesterday - [15]
MD3W5IRAnew fork: rip out drawing support - [16]
2CTN2IEFMerge lines.love - [17]
WB6SIB7HMerge lines.love - [18]
NVSC4N4Kchange a helper slightly - [19]
4YDBYBA4clean up memory leak experiments - [20]
N2NUGNN4include a brief reference enabling many useful apps - [21]
R5QXEHUIsomebody stop me - [22]
3PSFWAILMerge lines.love - [23]
36Z442IVback to commit 8123959e52f without code editing - [24]
D2GCFTTTclean up repl functionality - [25]
ORKN6EOBMerge lines.love - [26]
BULPIBEGbeginnings of a module for the text editor - [27]
CE4LZV4Tdrop last couple of manual tests - [28]
BLWAYPKVextract a module - [29]
OGUV4HSAremove some memory leaks from rendered fragments - [30]
UAYCSFSKMerge text.love - [31]
IGBTDA6YMerge text.love - [32]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [33]
RO35V4H4Merge text.love - [34]
XX7G2FFJintermingle freehand line drawings with text - [35]
FS2ITYYHrecord a known issue - [36]
66X36NZNa little more prose describing manual_tests - [37]
2L5MEZV3experiment: new edit namespace - [38]
ONHKBLLCMerge lines.love - [39]
FM5LDKGTMerge text.love - [40]
VXRYVZ74Merge text.love - [41]
TLOAPLBJadd a license - [42]
KMSL74GAsupport selections in the source editor - [43]
REAIVN7WMerge lines.love - [44]
R56CKHYZMerge text.love - [45]
SW7BSBMJseveral bugfixes in saving/loading cursor position - [46]
4SR3Z4Y3document the version of LÖVE I've been using - [47]
ZLJYLPOTMerge lines.love - [48]
6LJZN727handle chords - [49]
X43ZIKR3Merge text.love - [50]
B6DS4GZCMerge lines.love - [51]
QD4LOFQRMerge text.love - [52]
VHQCNMARseveral more modules - [53]
AF253GHLbugfix - [54]
MU2HIRR6Merge lines.love - [55]
2344TV56Merge lines.love - [56]
LWPFEZBIMerge lines.love - [57]
LXTTOB33extract a couple of files - [58]
PJ5PQAQErecord support for multiple versions - [59]
OTIBCAUJlove2d scaffold - [60]
AVTNUQYRbasic test-enabled framework - [61]
VP5KC4XZMerge lines.love - [62]
73OCE2MCafter much struggle, a brute-force undo - [63]
2TQUKHBCMerge lines.love - [64]
U3MJNFUYMerge lines.love - [65]
TVCPXAAUrename - [66]
Q6RXCILQMerge text.love - [67]
K74U4BAUMerge lines.love - [68]
VHUNJHXBMerge lines.love - [69]
7VGDIPLCmore robust state validation - [70]
SGMA5JLEsave the list of tests in repo - [71]
T4FRZSYLdelete an ancient, unused file - [72]
RSZD5A7Gforgot to add json.lua - [73]
RU4HIK43Merge lines.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)