diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2022-06-21 03:07:16 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2022-06-21 03:27:54 +0200 |
commit | d6126b318a55b06a1fde717e92c47bb9b3696708 (patch) | |
tree | 9eaa163b1c8d790403c55772b9fbf1962cb69046 /src/spawn.c | |
parent | 2b93e15597f82c5bf324c317b3e9d6462dde770b (diff) | |
download | sciteco-d6126b318a55b06a1fde717e92c47bb9b3696708.tar.gz |
fixed rubout of certain constructs like Ifoo$FRX$$
* avoid emitting SCI_UNDO undo tokens if the Scintilla undo action would actually be empty
Diffstat (limited to 'src/spawn.c')
-rw-r--r-- | src/spawn.c | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |