From 941f48da6dde691a7800290cc729aaaacd051392 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 18 Apr 2023 12:11:55 +0300 Subject: no longer try to avoid automatic scrolling - this is patched out of Scintilla now * The patch avoids all automatic scrolling consistently, including in SCI_UNDO. This speads up Undo (especially after interruptions). * Also, the patch disables a very costly and pointless (in SciTECO) algorithm that effectively made uninterruptible. * Effectively reverts large parts of 8ef010da59743fcc4927c790f585ba414ec7b129. I have never liked using unintuitive Scintilla messages to avoid scrolling. --- src/spawn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/spawn.c') diff --git a/src/spawn.c b/src/spawn.c index b4c59a9..97d0b21 100644 --- a/src/spawn.c +++ b/src/spawn.c @@ -297,9 +297,9 @@ teco_state_execute_done(teco_machine_main_t *ctx, const teco_string_t *str, GErr if (!teco_spawn_ctx.register_argument) { if (teco_current_doc_must_undo()) - undo__teco_interface_ssm(SCI_SETEMPTYSELECTION, + undo__teco_interface_ssm(SCI_GOTOPOS, teco_interface_ssm(SCI_GETCURRENTPOS, 0, 0), 0); - teco_interface_ssm(SCI_SETEMPTYSELECTION, teco_spawn_ctx.to, 0); + teco_interface_ssm(SCI_GOTOPOS, teco_spawn_ctx.to, 0); } teco_interface_ssm(SCI_BEGINUNDOACTION, 0, 0); -- cgit v1.2.3