aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-02-03 11:48:22 +0100
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-02-03 11:48:22 +0100
commita8414b1abb20e35ef7df41e75372b244fe80bebc (patch)
tree6d2e0e03c78df1967b88fb8582ea00dbf6299b48
parentba2cf86f1889a334772aba56186a14150a96b2f3 (diff)
fixed scrolling at the end of a multi-line command-lineHEADmaster-fmsbw-cimaster
* You couldn't see the first character on a new line after wrapping at the end of a multiline command line. * This is only worked around. The real reason must be in Scintilla, perhaps in a faulty calculation in Editor::MaxScrollPos().
-rw-r--r--src/cmdline.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cmdline.c b/src/cmdline.c
index 9a7b356..b944b5e 100644
--- a/src/cmdline.c
+++ b/src/cmdline.c
@@ -99,6 +99,14 @@ teco_cmdline_init(void)
teco_cmdline_ssm(SCI_SETTABDRAWMODE, SCTD_CONTROLCHAR, 0);
/*
+ * FIXME: This works around a problem where the caret is not
+ * scrolled in multi-line mode after it wraps at the end of the
+ * line. You cannot scroll the command-line with the mouse, so the
+ * user won't see any difference.
+ */
+ teco_cmdline_ssm(SCI_SETENDATLASTLINE, FALSE, 0);
+
+ /*
* FIXME: Something resets the margin text, so we have to set it last.
*/
teco_cmdline_ssm(SCI_MARGINSETTEXT, 0, (sptr_t)"*");