diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-11-02 10:11:32 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-11-02 10:11:32 +0000 |
commit | 29b0eda154f56d183e28dccea9b7d51946685165 (patch) | |
tree | 783fbeddc5423f5d132c01d89aa1d25ecbeee408 | |
parent | 8a9c9d80783576918f6c665fdc6751add19aa1f3 (diff) | |
download | zsh-29b0eda154f56d183e28dccea9b7d51946685165.tar.gz zsh-29b0eda154f56d183e28dccea9b7d51946685165.tar.xz zsh-29b0eda154f56d183e28dccea9b7d51946685165.zip |
21973: typo caused digitargument() not to work
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/Zle/zle_misc.c | 4 |
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 |