Blame SOURCES/bash-4.4-patch-19.patch

50ece2
From b0776d8c49ab4310fa056ce1033985996c5b9807 Mon Sep 17 00:00:00 2001
50ece2
From: Chet Ramey <chet.ramey@case.edu>
50ece2
Date: Tue, 6 Feb 2018 16:22:34 -0500
50ece2
Subject: [PATCH] Bash-4.4 patch 19
50ece2
50ece2
---
50ece2
 lib/readline/display.c | 4 +++-
50ece2
 patchlevel.h           | 2 +-
50ece2
 2 files changed, 4 insertions(+), 2 deletions(-)
50ece2
50ece2
diff --git a/lib/readline/display.c b/lib/readline/display.c
50ece2
index 41fb0531..2d2e768a 100644
50ece2
--- a/lib/readline/display.c
50ece2
+++ b/lib/readline/display.c
50ece2
@@ -771,7 +771,9 @@ rl_redisplay ()
50ece2
 	 appear in the first and last lines of the prompt */
50ece2
       wadjust = (newlines == 0)
50ece2
 		  ? prompt_invis_chars_first_line
50ece2
-		  : ((newlines == prompt_lines_estimate) ? wrap_offset : prompt_invis_chars_first_line);
50ece2
+		  : ((newlines == prompt_lines_estimate)
50ece2
+		  	? (wrap_offset - prompt_invis_chars_first_line)
50ece2
+		  	: 0);
50ece2
 
50ece2
       /* fix from Darin Johnson <darin@acuson.com> for prompt string with
50ece2
          invisible characters that is longer than the screen width.  The
50ece2
diff --git a/patchlevel.h b/patchlevel.h
50ece2
index f0ee56e4..a711c495 100644
50ece2
--- a/patchlevel.h
50ece2
+++ b/patchlevel.h
50ece2
@@ -25,6 +25,6 @@
50ece2
    regexp `^#define[ 	]*PATCHLEVEL', since that's what support/mkversion.sh
50ece2
    looks for to find the patch level (for the sccs version string). */
50ece2
 
50ece2
-#define PATCHLEVEL 18
50ece2
+#define PATCHLEVEL 19
50ece2
 
50ece2
 #endif /* _PATCHLEVEL_H_ */
50ece2
-- 
50ece2
2.13.6
50ece2