summaryrefslogtreecommitdiff
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
parentf4a248f9d38dc02d65610395f4c7f9a95a5d6612 (diff)
downloadzsh-d96c8981011294cfef62cd1f8d76b2a982957ca4.tar.gz
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.
-rw-r--r--ChangeLog5
-rw-r--r--Src/utils.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b50d6b2b7..8cef6370b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-03-23 dana <dana@dana.is>
+
+ * 47745: Stephane Chazelas: Src/utils.c: Fix [:IDENT:] vs
+ posixidentifiers
+
2021-03-17 dana <dana@dana.is>
* 48180: Marlon Richert: Completion/Base/Core/_main_complete,
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);