aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interface-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface-gtk')
-rw-r--r--src/interface-gtk/interface.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/interface-gtk/interface.c b/src/interface-gtk/interface.c
index 5b9f530..aa63276 100644
--- a/src/interface-gtk/interface.c
+++ b/src/interface-gtk/interface.c
@@ -880,6 +880,16 @@ 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.
+ * 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);
+
+ /*
* The styles configured via Scintilla might change
* with every keypress.
*/