summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2018-06-01 10:17:06 -0400
committerChet Ramey <chet.ramey@case.edu>2018-06-01 10:17:06 -0400
commit457e4fbeb977ffe065dc2ba05a0ebc4000b32065 (patch)
tree5227161f9a500606cf6eb0933fde9f8736de299e
parentb5bc9008428c924da76052f51dc8923bd3c7bd4d (diff)
downloadreadline-457e4fbeb977ffe065dc2ba05a0ebc4000b32065.tar.gz
readline-7.0 patch 4
-rw-r--r--display.c4
-rw-r--r--patchlevel2
2 files changed, 4 insertions, 2 deletions
diff --git a/display.c b/display.c
index 41fb053..2d2e768 100644
--- 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
diff --git a/patchlevel b/patchlevel
index ce3e355..626a945 100644
--- a/patchlevel
+++ b/patchlevel
@@ -1,3 +1,3 @@
# Do not edit -- exists only for use by patch
-3
+4