From a8414b1abb20e35ef7df41e75372b244fe80bebc Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 3 Feb 2026 11:48:22 +0100 Subject: fixed scrolling at the end of a multi-line command-line * 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(). --- src/cmdline.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/cmdline.c b/src/cmdline.c index 9a7b356..b944b5e 100644 --- a/src/cmdline.c +++ b/src/cmdline.c @@ -98,6 +98,14 @@ teco_cmdline_init(void) /* render tabs as "TAB" without indentation */ 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. */ -- cgit v1.2.3