diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-10-27 19:51:10 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-10-28 04:32:12 +0300 |
commit | 427092d2c8ee11b4a56eb50dbf68861f10f2a81f (patch) | |
tree | 87b6be1df9aaa7a69a615f759f347562a8bdaf9b /src/spawn.c | |
parent | 5a6862bba8eed7fc1f74592b88f677e22ed86f25 (diff) | |
download | sciteco-427092d2c8ee11b4a56eb50dbf68861f10f2a81f.tar.gz |
fixed rubbing out <:Xq>, <:^Uq> and other append-to-register operations
* This was a regression introduced in 41ab5cf0289dab60ac1ddc97cf9680ee2468ea6c,
which changed the semantics of teco_doc_undo_set_string().
* Removed undo_append_string() Q-Reg virtual method.
append_string() now does its own undo token emission, so that we can
defer the teco_doc_undo_edit() after the point that the document
was initialized. This is important, so that we can configure the
default encoding on new registers.
Diffstat (limited to 'src/spawn.c')
-rw-r--r-- | src/spawn.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/spawn.c b/src/spawn.c index 06fdf95..7a5736c 100644 --- a/src/spawn.c +++ b/src/spawn.c @@ -761,8 +761,7 @@ teco_spawn_stdout_watch_cb(GIOChannel *chan, GIOCondition condition, gpointer da if (qreg) { if (teco_spawn_ctx.text_added) { - if (!qreg->vtable->undo_append_string(qreg, &teco_spawn_ctx.error) || - !qreg->vtable->append_string(qreg, buffer.data, buffer.len, + if (!qreg->vtable->append_string(qreg, buffer.data, buffer.len, &teco_spawn_ctx.error)) goto error; } else { |