From a53fa85dabdfc2c47ec0c9e6626ddda2379a8e38 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 25 Jul 2026 02:37:17 +0200 Subject: get rid of teco_qreg_vtable_t::undo_set_integer() 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). --- src/glob.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/glob.c') diff --git a/src/glob.c b/src/glob.c index 24f2647..cb571c4 100644 --- a/src/glob.c +++ b/src/glob.c @@ -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; -- cgit v1.2.3