]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
Bash-4.4 patch 19
authorChet Ramey <chet.ramey@case.edu>
Tue, 6 Feb 2018 21:22:34 +0000 (16:22 -0500)
committerChet Ramey <chet.ramey@case.edu>
Tue, 6 Feb 2018 21:22:34 +0000 (16:22 -0500)
lib/readline/display.c
patchlevel.h

index 41fb05312eb9fb8c16ac410d8e7871c3f12afec7..2d2e768a93c30618f130fe091b54d12723369b52 100644 (file)
@@ -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 f0ee56e4cb0819222c7cd7edf95bae3bcb48f8ec..a711c4957721d613da77578c0073e39952a535ab 100644 (file)
@@ -25,6 +25,6 @@
    regexp `^#define[   ]*PATCHLEVEL', since that's what support/mkversion.sh
    looks for to find the patch level (for the sccs version string). */
 
-#define PATCHLEVEL 18
+#define PATCHLEVEL 19
 
 #endif /* _PATCHLEVEL_H_ */