about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorStephane Chazelas <stephane@chazelas.org>2020-12-17 14:49:50 +0000
committerdana <dana@dana.is>2021-03-23 00:15:09 -0500
commitd96c8981011294cfef62cd1f8d76b2a982957ca4 (patch)
tree0419dbe5e7294f0120b5110512ed2fd05259d35e /Src
parentf4a248f9d38dc02d65610395f4c7f9a95a5d6612 (diff)
downloadzsh-d96c8981011294cfef62cd1f8d76b2a982957ca4.tar.gz
zsh-d96c8981011294cfef62cd1f8d76b2a982957ca4.tar.xz
zsh-d96c8981011294cfef62cd1f8d76b2a982957ca4.zip
47745: Fix [:IDENT:] vs posixidentifiers
wcsitype(c, IIDENT) should return false for non-ASCII characters
when the POSIX_IDENTIFIERS option is on, not the other way round.
Diffstat (limited to 'Src')
-rw-r--r--Src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c
index 5151b89a8..2a8d677a7 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -4327,7 +4327,7 @@ wcsitype(wchar_t c, int itype)
     } else {
 	switch (itype) {
 	case IIDENT:
-	    if (!isset(POSIXIDENTIFIERS))
+	    if (isset(POSIXIDENTIFIERS))
 		return 0;
 	    return iswalnum(c);