b130412
			     BASH PATCH REPORT
b130412
			     =================
b130412
b130412
Bash-Release: 3.2
b130412
Patch-ID: bash32-016
b130412
b130412
Bug-Reported-by: Peter Volkov <torre_cremata@mail.ru>
b130412
Bug-Reference-ID: <1171795523.8021.18.camel@localhost>
b130412
Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2007-02/msg00054.html
b130412
b130412
Bug-Description:
b130412
b130412
When moving the cursor, bash sometimes misplaces the cursor when the prompt
b130412
contains two or more multibyte characters.  The particular circumstance that
b130412
uncovered the problem was having the (multibyte) current directory name in
b130412
the prompt string.
b130412
b130412
Patch:
b130412
b130412
*** ../bash-3.2/lib/readline/display.c	Fri Jan 19 13:34:50 2007
b130412
--- lib/readline/display.c	Sat Mar 10 17:25:44 2007
b130412
***************
b130412
*** 1745,1749 ****
b130412
      {
b130412
        dpos = _rl_col_width (data, 0, new);
b130412
!       if (dpos > prompt_last_invisible)		/* XXX - don't use woff here */
b130412
  	{
b130412
  	  dpos -= woff;
b130412
--- 1745,1752 ----
b130412
      {
b130412
        dpos = _rl_col_width (data, 0, new);
b130412
!       /* Use NEW when comparing against the last invisible character in the
b130412
! 	 prompt string, since they're both buffer indices and DPOS is a
b130412
! 	 desired display position. */
b130412
!       if (new > prompt_last_invisible)		/* XXX - don't use woff here */
b130412
  	{
b130412
  	  dpos -= woff;
b130412
*** ../bash-3.2/patchlevel.h	Thu Apr 13 08:31:04 2006
b130412
--- patchlevel.h	Mon Oct 16 14:22:54 2006
b130412
***************
b130412
*** 26,30 ****
b130412
     looks for to find the patch level (for the sccs version string). */
b130412
  
b130412
! #define PATCHLEVEL 15
b130412
  
b130412
  #endif /* _PATCHLEVEL_H_ */
b130412
--- 26,30 ----
b130412
     looks for to find the patch level (for the sccs version string). */
b130412
  
b130412
! #define PATCHLEVEL 16
b130412
  
b130412
  #endif /* _PATCHLEVEL_H_ */