]> git.ipfire.org Git - thirdparty/readline.git/commitdiff
readline-7.0 patch 4
authorChet Ramey <chet.ramey@case.edu>
Fri, 1 Jun 2018 14:17:06 +0000 (10:17 -0400)
committerChet Ramey <chet.ramey@case.edu>
Fri, 1 Jun 2018 14:17:06 +0000 (10:17 -0400)
display.c
patchlevel

index 41fb05312eb9fb8c16ac410d8e7871c3f12afec7..2d2e768a93c30618f130fe091b54d12723369b52 100644 (file)
--- a/display.c
+++ b/display.c
@@ -771,7 +771,9 @@ rl_redisplay ()
         appear in the first and last lines of the prompt */
       wadjust = (newlines == 0)
                  ? prompt_invis_chars_first_line
-                 : ((newlines == prompt_lines_estimate) ? wrap_offset : prompt_invis_chars_first_line);
+                 : ((newlines == prompt_lines_estimate)
+                       ? (wrap_offset - prompt_invis_chars_first_line)
+                       : 0);
 
       /* fix from Darin Johnson <darin@acuson.com> for prompt string with
          invisible characters that is longer than the screen width.  The
index ce3e35565330d4faf05e7f91c30ce66182f764fd..626a945e08fbd8926846afabedb8740ebf1720c7 100644 (file)
@@ -1,3 +1,3 @@
 # Do not edit -- exists only for use by patch
 
-3
+4