about summary refs log tree commit diff
path: root/Src/Zle/computil.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2005-10-31 18:22:40 +0000
committerWayne Davison <wayned@users.sourceforge.net>2005-10-31 18:22:40 +0000
commit87f010ec1ab3fdff909370efd9dbca635105471a (patch)
tree4b5273aa29d42e280e9544d115b2c19c7c99adda /Src/Zle/computil.c
parent8c3234fb738b56cb8e087681fd8cf82aeac5046b (diff)
downloadzsh-87f010ec1ab3fdff909370efd9dbca635105471a.tar.gz
zsh-87f010ec1ab3fdff909370efd9dbca635105471a.tar.xz
zsh-87f010ec1ab3fdff909370efd9dbca635105471a.zip
Use idigit() instead of range-checking '0' - '9'.
Diffstat (limited to 'Src/Zle/computil.c')
-rw-r--r--Src/Zle/computil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
index e56972cee..b76b7ad8a 100644
--- a/Src/Zle/computil.c
+++ b/Src/Zle/computil.c
@@ -1683,7 +1683,7 @@ ca_inactive(Cadef d, char **xor, int cur, int opts, char *optname)
 	    } else if (x[0] == '*' && !x[1]) {
 		if (d->rest && (!set || d->rest->set))
 		    d->rest->active = 0;
-	    } else if (x[0] >= '0' && x[0] <= '9') {
+	    } else if (idigit(x[0])) {
 		int n = atoi(x);
 		Caarg a = d->args;