diff options
| author | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2026-07-25 02:37:17 +0200 |
|---|---|---|
| committer | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2026-07-25 02:37:17 +0200 |
| commit | a53fa85dabdfc2c47ec0c9e6626ddda2379a8e38 (patch) | |
| tree | ab3dd832cf085efdffcfb99c9b5b0579cb0eb7fd /src/glob.c | |
| parent | 685507922b0b75da5935076395a5b1ec1ef58356 (diff) | |
get rid of teco_qreg_vtable_t::undo_set_integer()HEADmaster-fmsbw-cimaster
It was never required as a separate callback/method,
but was kept merely for consistency.
Since we now call teco_current_doc_set_dot() in
teco_qreg_dot_set_integer(), we'd have to split it up into
an "undo" method as well. I decided to get rid of the
superfluous Q-Reg method instead.
It's quite likely we could get rid of the remaining
undo_set_string(), undo_exchange_string() and undo_edit()
callbacks as well (TODO).
Diffstat (limited to 'src/glob.c')
| -rw-r--r-- | src/glob.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -607,8 +607,7 @@ teco_state_glob_filename_done(teco_machine_main_t *ctx, teco_string_t str, GErro undo__teco_interface_ssm(SCI_UNDO, 0, 0); } - if (!glob_reg->vtable->undo_set_integer(glob_reg, error) || - !glob_reg->vtable->set_integer(glob_reg, teco_bool(matching), error)) + if (!glob_reg->vtable->set_integer(glob_reg, teco_bool(matching), error)) return NULL; return &teco_state_start; |
