From 5c8e3e96c8b852394cd2b0956d6e9bb0b6cc543d Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 31 Aug 2024 18:34:03 -0700 Subject: clean up Drawing.before after creating undo event This isn't a bug here, but it led to a bug in lines 2. --- edit.lua | 1 + source_edit.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/edit.lua b/edit.lua index 118e0ea..9a223bf 100644 --- a/edit.lua +++ b/edit.lua @@ -184,6 +184,7 @@ function edit.draw(State) State.cursor1.line = State.cursor1.line+1 end record_undo_event(State, {before=Drawing.before, after=snapshot(State, line_index-1, line_index+1)}) + Drawing.before = nil schedule_save(State) end, }) diff --git a/source_edit.lua b/source_edit.lua index fead6c5..f92ca0f 100644 --- a/source_edit.lua +++ b/source_edit.lua @@ -190,6 +190,7 @@ function edit.draw(State, hide_cursor, show_line_numbers) State.cursor1.line = State.cursor1.line+1 end record_undo_event(State, {before=Drawing.before, after=snapshot(State, line_index-1, line_index+1)}) + Drawing.before = nil schedule_save(State) end, }) -- cgit 1.4.1-2-gfad0 akkartik/mu/?h=hlt'>summary refs log blame commit diff stats
path: root/html/069allocate.subx.html
blob: d91325d3d3d69fe5970f7bee22fe6a57484e6d1d (plain) (tree)
1
2
3
4
5
6
7