diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2023-04-18 12:11:55 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2023-04-18 12:11:55 +0300 |
commit | 941f48da6dde691a7800290cc729aaaacd051392 (patch) | |
tree | 1191a175e4c2f88f7a926413c6ed455d1f803d24 /src/help.c | |
parent | f0d57d7676e2fed234a10d93f2737209e8007c2c (diff) | |
download | sciteco-941f48da6dde691a7800290cc729aaaacd051392.tar.gz |
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 <Ix$> uninterruptible.
* Effectively reverts large parts of 8ef010da59743fcc4927c790f585ba414ec7b129.
I have never liked using unintuitive Scintilla messages to avoid scrolling.
Diffstat (limited to 'src/help.c')
-rw-r--r-- | src/help.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -308,9 +308,9 @@ teco_state_help_done(teco_machine_main_t *ctx, const teco_string_t *str, GError * multiple topics in the same buffer without * closing it first. */ - 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, topic->pos, 0); + teco_interface_ssm(SCI_GOTOPOS, topic->pos, 0); return &teco_state_start; } |