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 /Src/Zle | |
parent | a1bf618b569636bf5b0a9dedddc0b6d3d5c3efc6 (diff) | |
download | zsh-60a99da05465c150ff0ee11b6494f2cad2934487.tar.gz zsh-60a99da05465c150ff0ee11b6494f2cad2934487.tar.xz zsh-60a99da05465c150ff0ee11b6494f2cad2934487.zip |
21936: bug deleting extra-wide character
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/zle_refresh.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |