bug-bash
[Top][All Lists]
Advanced

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

Re: backward-kill-word is not refreshing correctly


From: Chet Ramey
Subject: Re: backward-kill-word is not refreshing correctly
Date: Tue, 14 Apr 2009 14:07:32 -0400
User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)

Chet Ramey wrote:

> OK, I figured out why I couldn't reproduce it.  My locale is always set
> to en_US.UTF-8 (multibyte), and the problem only manifests itself when
> in non-multibyte mode.  This is why I originally asked for your locale --
> that was the missing piece.  It should be pretty easy to fix.

And it was easy to fix.  Jay Freeman did a great job of identifying the
problem spot.  Please try the attached patch; it works for me.

I also need to add locale information to `bashbug'; I can tackle the
problem of making sure people actually use it to report bugs later.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/
*** ../bash-4.0-patched/lib/readline/display.c  2009-01-04 14:32:32.000000000 
-0500
--- lib/readline/display.c      2009-04-14 14:00:18.000000000 -0400
***************
*** 1773,1777 ****
             adjust col_lendiff based on the difference between _rl_last_c_pos
             and _rl_screenwidth */
!         if (col_lendiff && (_rl_last_c_pos < _rl_screenwidth))
  #endif
            {     
--- 1773,1777 ----
             adjust col_lendiff based on the difference between _rl_last_c_pos
             and _rl_screenwidth */
!         if (col_lendiff && ((MB_CUR_MAX == 1 || rl_byte_oriented) || 
(_rl_last_c_pos < _rl_screenwidth)))
  #endif
            {     

reply via email to

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