1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2026-01-01 20:11:06 +01:00

unposted: follow up to 39867: don't need test against zero

This commit is contained in:
Peter Stephenson 2016-11-08 10:51:03 +00:00
parent 68a576bc55
commit 1683371fa5
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2016-11-08 Peter Stephenson <p.stephenson@samsung.com>
* unposted: Src/utils.c: follow up to 39867: don't need test
against zero any more.
* Sebastian: 39869: can transfer ownership of core of array when
assigning.

View file

@ -5341,7 +5341,7 @@ mb_metastrlenend(char *ptr, int width, char *eptr)
inchar = *ptr;
ptr++;
if (complete && (inchar >= 0 && STOUC(inchar) <= STOUC(0x7f))) {
if (complete && STOUC(inchar) <= STOUC(0x7f)) {
/*
* We rely on 7-bit US-ASCII as a subset, so skip
* multibyte handling if we have such a character.