about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/zle_misc.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 8bde1f2e3..7d215a1e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-02  Peter Stephenson  <pws@csr.com>
+
+	* 21973: Src/Zle/zle_misc.c: idigit() test in digitargument()
+	had reversed sense.
+
 2005-11-01  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* 21971: Src/Zle/zle_refresh.c, Src/Zle/zle_tricky.c: rewrite
diff --git a/Src/Zle/zle_misc.c b/Src/Zle/zle_misc.c
index 0a7b5084f..2557fb0ed 100644
--- a/Src/Zle/zle_misc.c
+++ b/Src/Zle/zle_misc.c
@@ -532,11 +532,11 @@ digitargument(UNUSED(char **args))
      * of digits.  We are assuming ASCII is a subset of the multibyte
      * encoding.
      */
-    if (idigit(lastchar))
+    if (!idigit(lastchar))
 	return 1;
 #else
     /* allow metafied as well as ordinary digits */
-    if (idigit(lastchar & 0x7f))
+    if (!idigit(lastchar & 0x7f))
 	return 1;
 #endif