Hi,

Chet Ramey wrote:
> Have you tried enabling horizontal scrolling?

Didn't know about that option, it seems to solve the problem at hand
indeed, thanks! Is there any particular reason why it isn't enabled for
terminals of height 1 by default?

For example:

--- readline-8.0.orig/readline.c        2018-07-17 20:06:16.000000000 +0200
+++ readline-8.0/readline.c     2019-11-20 09:56:01.747705314 +0100
@@ -1211,6 +1211,10 @@ readline_initialize_everything (void)
   /* Read in the init file. */
   rl_read_init_file ((char *)NULL);
 
+  if (_rl_screenheight == 1) {
+    _rl_horizontal_scroll_mode = 1;
+  }
+
   /* XXX */
   if (_rl_horizontal_scroll_mode && _rl_term_autowrap)
     {

Cheers,
Sören

Reply via email to