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