From 87f010ec1ab3fdff909370efd9dbca635105471a Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 31 Oct 2005 18:22:40 +0000 Subject: Use idigit() instead of range-checking '0' - '9'. --- Src/Zle/computil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Zle/computil.c') 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; -- cgit v1.2.3