From d6126b318a55b06a1fde717e92c47bb9b3696708 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 21 Jun 2022 03:07:16 +0200 Subject: fixed rubout of certain constructs like Ifoo$FRX$$ * avoid emitting SCI_UNDO undo tokens if the Scintilla undo action would actually be empty --- src/spawn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/spawn.c') diff --git a/src/spawn.c b/src/spawn.c index 46454ff..abaaa0e 100644 --- a/src/spawn.c +++ b/src/spawn.c @@ -316,7 +316,7 @@ teco_state_execute_done(teco_machine_main_t *ctx, const teco_string_t *str, GErr teco_spawn_ctx.stdout_reader.eol_style); } } else if (teco_spawn_ctx.from != teco_spawn_ctx.to || teco_spawn_ctx.text_added) { - /* undo action is only effective if it changed anything */ + /* undo action has only been created if it changed anything */ if (teco_current_doc_must_undo()) undo__teco_interface_ssm(SCI_UNDO, 0, 0); teco_ring_dirtify(); -- cgit v1.2.3