Merge lines.love
[?]
Feb 10, 2023, 7:19 AM
XS3PZI7GCTJQNIB2BJRFBBXJZGVEOUVKSD442YDWZHEGIUAWMFQACDependencies
- [2]
UTDSCN3GMerge lines.love - [3]
YRJFJNUDbugfix - [4]
DB7HJBHJMerge lines.love - [5]
T4FRZSYLdelete an ancient, unused file - [6]
K74U4BAUMerge lines.love - [7]
D2GCFTTTclean up repl functionality - [8]
6LJZN727handle chords - [9]
66X36NZNa little more prose describing manual_tests - [10]
FS2ITYYHrecord a known issue - [11]
R5QXEHUIsomebody stop me - [12]
XX7G2FFJintermingle freehand line drawings with text - [13]
CE4LZV4Tdrop last couple of manual tests - [14]
OGUV4HSAremove some memory leaks from rendered fragments - [15]
ETXNVRPTMerge lines.love - [16]
3QNOKBFMbeginnings of a test harness - [17]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [18]
AVTNUQYRbasic test-enabled framework - [19]
JOPVPUSAediting source code from within the app - [20]
KMSL74GAsupport selections in the source editor - [21]
TVCPXAAUrename - [22]
VXORMHMEdelete experimental REPL - [23]
XW7ANEJXswitch shortcuts for bifold text - [24]
D4B52CQ2Merge lines.love - [25]
BLWAYPKVextract a module - [26]
TLOAPLBJadd a license - [27]
MD3W5IRAnew fork: rip out drawing support - [28]
4YDBYBA4clean up memory leak experiments - [29]
KKMFQDR4editing source code from within the app - [30]
OTIBCAUJlove2d scaffold - [31]
BULPIBEGbeginnings of a module for the text editor - [32]
VHQCNMARseveral more modules - [33]
RSZD5A7Gforgot to add json.lua - [34]
LXTTOB33extract a couple of files - [35]
VHUNJHXBMerge lines.love - [36]
VP5KC4XZMerge lines.love - [37]
KG7YVGVRMerge lines.love - [38]
73OCE2MCafter much struggle, a brute-force undo - [39]
2CTN2IEFMerge lines.love - [40]
ZTZOO2OQMerge lines.love - [41]
A4BSGS2CMerge lines.love - [42]
B4FAIVRAMerge lines.love - [43]
2L5MEZV3experiment: new edit namespace - [44]
K2X6G75Zstart writing some tests for drawings - [45]
GUOQRUL7Merge lines.love - [46]
3PSFWAILMerge lines.love - [47]
4SR3Z4Y3document the version of LÖVE I've been using - [48]
ORKN6EOBMerge lines.love
Change contents
- file deletion: source_edit.lua source_edit.lua
for _,line_cache in ipairs(State.line_cache) do line_cache.starty = nil end -- just in case we scrollif chord == 'escape' thenState.search_term = nilState.search_text = nilState.cursor1 = State.search_backup.cursorState.screen_top1 = State.search_backup.screen_topState.search_backup = nilText.redraw_all(State) -- if we're scrolling, reclaim all fragments to avoid memory leakselseif chord == 'return' thenState.search_term = nilState.search_text = nilState.search_backup = nilelseif chord == 'backspace' thenlocal len = utf8.len(State.search_term)local byte_offset = Text.offset(State.search_term, len)State.search_term = string.sub(State.search_term, 1, byte_offset-1)State.search_text = nilelseif chord == 'down' thenif State.cursor1.pos thenState.cursor1.pos = State.cursor1.pos+1elseState.cursor1.posB = State.cursor1.posB+1endText.search_next(State)elseif chord == 'up' thenText.search_previous(State)endreturnelseif chord == 'C-f' thenState.search_term = ''State.search_backup = {cursor={line=State.cursor1.line, pos=State.cursor1.pos, posB=State.cursor1.posB},screen_top={line=State.screen_top1.line, pos=State.screen_top1.pos, posB=State.screen_top1.posB},}assert(State.search_text == nil)-- bifold text - edit in source_edit.lua at line 321
for _,line_cache in ipairs(State.line_cache) do line_cache.starty = nil end -- just in case we scroll