diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-10-25 23:13:40 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-10-25 23:13:40 +0000 |
commit | 60a99da05465c150ff0ee11b6494f2cad2934487 (patch) | |
tree | 5f8ae0f5ae1a2d5d17ec3483c3dc627714c98703 | |
parent | a1bf618b569636bf5b0a9dedddc0b6d3d5c3efc6 (diff) | |
download | zsh-60a99da05465c150ff0ee11b6494f2cad2934487.tar.gz zsh-60a99da05465c150ff0ee11b6494f2cad2934487.tar.xz zsh-60a99da05465c150ff0ee11b6494f2cad2934487.zip |
21936: bug deleting extra-wide character
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/Zle/zle_refresh.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 10870961b..048e465bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-10-26 Peter Stephenson <p.w.stephenson@ntlworld.com> + + * 21936: Src/Zle/zle_refresh.c: fix one bug when deleting + an extra-wide character. + 2005-10-25 Peter Stephenson <p.w.stephenson@ntlworld.com> * 21935: Documentation for 21933. diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c index 4fbcd1e71..8efde9048 100644 --- a/Src/Zle/zle_refresh.c +++ b/Src/Zle/zle_refresh.c @@ -1138,6 +1138,12 @@ refreshline(int ln) tc_delchars(i); ol += i; char_ins -= i; +#ifdef ZLE_UNICODE_SUPPORT + while (*ol == WEOF) { + ol++; + char_ins--; + } +#endif i = 0; break; } |