mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 05:16:05 +01:00
Daiki Ueno: 28112: fix character width assignment
This commit is contained in:
parent
fc7ad5cc1c
commit
edcd71603d
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-08-02 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* Daiki Ueno: 28112: Src/Zle/zle_refresh.c: missing parentheses
|
||||
caused incorrect size for character width.
|
||||
|
||||
2010-07-31 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* users/15219: Src/jobs.c: print exit status if PRINTEXITVALUE
|
||||
|
@ -13463,5 +13468,5 @@
|
|||
|
||||
*****************************************************
|
||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||
* $Revision: 1.5043 $
|
||||
* $Revision: 1.5044 $
|
||||
*****************************************************
|
||||
|
|
|
@ -2341,7 +2341,7 @@ singlerefresh(ZLE_STRING_T tmpline, int tmpll, int tmpcs)
|
|||
if (tmpline[t0] == ZWC('\t'))
|
||||
vsiz = (vsiz | 7) + 2;
|
||||
#ifdef MULTIBYTE_SUPPORT
|
||||
else if (iswprint(tmpline[t0]) && (width = WCWIDTH(tmpline[t0]) > 0)) {
|
||||
else if (iswprint(tmpline[t0]) && ((width = WCWIDTH(tmpline[t0])) > 0)) {
|
||||
vsiz += width;
|
||||
if (isset(COMBININGCHARS) && IS_BASECHAR(tmpline[t0])) {
|
||||
while (t0 < tmpll-1 && IS_COMBINING(tmpline[t0+1]))
|
||||
|
|
Loading…
Reference in a new issue