Merge lines.love
[?]
Feb 10, 2023, 7:19 AM
XS3PZI7GCTJQNIB2BJRFBBXJZGVEOUVKSD442YDWZHEGIUAWMFQACDependencies
- [2]
UTDSCN3GMerge lines.love - [3]
YRJFJNUDbugfix - [4]
D2GCFTTTclean up repl functionality - [5]
B4FAIVRAMerge lines.love - [6]
6LJZN727handle chords - [7]
R5QXEHUIsomebody stop me - [8]
FS2ITYYHrecord a known issue - [9]
VHUNJHXBMerge lines.love - [10]
D4B52CQ2Merge lines.love - [11]
CE4LZV4Tdrop last couple of manual tests - [12]
K74U4BAUMerge lines.love - [13]
KMSL74GAsupport selections in the source editor - [14]
XX7G2FFJintermingle freehand line drawings with text - [15]
LXTTOB33extract a couple of files - [16]
DB7HJBHJMerge lines.love - [17]
TLOAPLBJadd a license - [18]
VHQCNMARseveral more modules - [19]
73OCE2MCafter much struggle, a brute-force undo - [20]
KKMFQDR4editing source code from within the app - [21]
XW7ANEJXswitch shortcuts for bifold text - [22]
MD3W5IRAnew fork: rip out drawing support - [23]
BULPIBEGbeginnings of a module for the text editor - [24]
ZTZOO2OQMerge lines.love - [25]
AVTNUQYRbasic test-enabled framework - [26]
VXORMHMEdelete experimental REPL - [27]
2L5MEZV3experiment: new edit namespace - [28]
4YDBYBA4clean up memory leak experiments - [29]
3PSFWAILMerge lines.love - [30]
VP5KC4XZMerge lines.love - [31]
A4BSGS2CMerge lines.love - [32]
RSZD5A7Gforgot to add json.lua - [33]
3QNOKBFMbeginnings of a test harness - [34]
OGUV4HSAremove some memory leaks from rendered fragments - [35]
TVCPXAAUrename - [36]
KG7YVGVRMerge lines.love - [37]
66X36NZNa little more prose describing manual_tests - [38]
4SR3Z4Y3document the version of LÖVE I've been using - [39]
OTIBCAUJlove2d scaffold - [40]
T4FRZSYLdelete an ancient, unused file - [41]
K2X6G75Zstart writing some tests for drawings - [42]
2CTN2IEFMerge lines.love - [43]
BLWAYPKVextract a module - [44]
ORKN6EOBMerge lines.love - [45]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [46]
GUOQRUL7Merge lines.love - [47]
JOPVPUSAediting source code from within the app - [48]
ETXNVRPTMerge 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