bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] prompt handling bug exposed since bash30-006


From: Tim Waugh
Subject: Re: [patch] prompt handling bug exposed since bash30-006
Date: Thu, 18 Nov 2004 17:20:54 +0000
User-agent: Mutt/1.4.1i

Hmm, a better patch for this seems to be:

--- bash-3.0/lib/readline/display.c.read-e-segfault     2004-11-18 
16:24:46.000000000 +0000
+++ bash-3.0/lib/readline/display.c     2004-11-18 17:12:32.904903404 +0000
@@ -572,11 +572,10 @@
 
   /* inv_lbreaks[i] is where line i starts in the buffer. */
   inv_lbreaks[newlines = 0] = 0;
-#if 0
-  lpos = out - wrap_offset;
-#else
-  lpos = prompt_physical_chars + modmark;
-#endif
+  if (local_prompt)
+    lpos = prompt_physical_chars + modmark;
+  else
+    lpos = 0;
 
 #if defined (HANDLE_MULTIBYTE)
   memset (_rl_wrapped_line, 0, vis_lbsize);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]