summaryrefslogtreecommitdiff
path: root/shells/bash/files/patch-lib_readline_display.c
blob: f05f78b72c7d737e546b2b7b6100dad5c8577d3a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- lib/readline/display.c.orig	2009-01-04 11:32:32.000000000 -0800
+++ lib/readline/display.c	2009-03-08 00:51:31.000000000 -0800
@@ -654,5 +654,8 @@ rl_redisplay ()
   /* inv_lbreaks[i] is where line i starts in the buffer. */
   inv_lbreaks[newlines = 0] = 0;
+  if (local_prompt)
   lpos = prompt_physical_chars + modmark;
+  else
+    lpos = 0;
 
 #if defined (HANDLE_MULTIBYTE)