undo creating new drawings
[?]
Jun 10, 2022, 6:45 PM
NQKFQSZEFIQTIJXEJ64KX46JXLWUUFXVRTQCPM7HF4DUHT2QHZAACDependencies
- [2]
VJ77YABHmore efficient undo/redo - [3]
U2TKUOIDbugfix: undo drawing creation - [4]
UWNHC4AAredo y computations - [5]
DLQMM265scroll past first page - [6]
SQLVYKVJrename - [*]
73OCE2MCafter much struggle, a brute-force undo - [*]
OTIBCAUJlove2d scaffold
Change contents
- edit in undo.lua at line 45
assert(#Lines > 0)if s < 1 then s = 1 endif s > #Lines then s = #Lines endif e < 1 then e = 1 endif e > #Lines then e = #Lines end - replacement in main.lua at line 222
Drawing.before = snapshot()Drawing.before = snapshot(line_index-1, line_index) - edit in main.lua at line 227
save_to_disk(Lines, Filename)record_undo_event({before=Drawing.before, after=snapshot(line_index-1, line_index+1)})