aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interface-gtk
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2023-04-18 12:11:55 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2023-04-18 12:11:55 +0300
commit941f48da6dde691a7800290cc729aaaacd051392 (patch)
tree1191a175e4c2f88f7a926413c6ed455d1f803d24 /src/interface-gtk
parentf0d57d7676e2fed234a10d93f2737209e8007c2c (diff)
downloadsciteco-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/interface-gtk')
-rw-r--r--src/interface-gtk/interface.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/interface-gtk/interface.c b/src/interface-gtk/interface.c
index 0271947..3dcabf5 100644
--- a/src/interface-gtk/interface.c
+++ b/src/interface-gtk/interface.c
@@ -897,12 +897,9 @@ teco_interface_handle_key_press(guint keyval, guint state, GError **error)
}
/*
- * We avoid Scintilla messages that scroll the caret during macro
- * execution since it has been benchmarked to be very a very costly operation.
+ * Scintilla has been patched to avoid any automatic scrolling since that
+ * has been benchmarked to be a very costly operation.
* Instead we do it only once after every keypress.
- *
- * FIXME: This could be in teco_cmdline_keypress() since it is common among
- * all interface implementations.
*/
teco_interface_ssm(SCI_SCROLLCARET, 0, 0);