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/qreg.h | |
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/qreg.h')
-rw-r--r-- | src/qreg.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -52,8 +52,9 @@ typedef const struct { gboolean (*set_string)(teco_qreg_t *qreg, const gchar *str, gsize len, guint codepage, GError **error); gboolean (*undo_set_string)(teco_qreg_t *qreg, GError **error); + + /* does not need an explicit undo-call */ gboolean (*append_string)(teco_qreg_t *qreg, const gchar *str, gsize len, GError **error); - gboolean (*undo_append_string)(teco_qreg_t *qreg, GError **error); gboolean (*get_string)(teco_qreg_t *qreg, gchar **str, gsize *len, guint *codepage, GError **error); |