diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2013-09-19 07:55:53 -0700 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2013-09-19 07:55:53 -0700 |
commit | 61deff76f22310ce9e10dd2174b8cf8e48c678ee (patch) | |
tree | 33bbdc0e8b1da81a5250ee91c285351b5a40ab41 | |
parent | 844e569b632fc032576edc039f793be47fde724e (diff) | |
download | zsh-61deff76f22310ce9e10dd2174b8cf8e48c678ee.tar.gz zsh-61deff76f22310ce9e10dd2174b8cf8e48c678ee.tar.xz zsh-61deff76f22310ce9e10dd2174b8cf8e48c678ee.zip |
31737: same loop counter fix in get_cadef as get_cvdef.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Src/Zle/computil.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 12b5b5b0c..6256f5210 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-09-19 Barton E. Schaefer <schaefer@zsh.org> + + * 31737: Src/Zle/computil.c (get_cadef): same fix as get_cvdef. + 2013-09-19 Peter Stephenson <p.stephenson@samsung.com> * Axel Beckert: 31735: Src/Zle/computil.c (get_cvdef): diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 2c323eefe..f8983c3ff 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -1608,7 +1608,7 @@ get_cadef(char *nam, char **args) return *p; } else if (!min || !*p || (*p)->lastt < (*min)->lastt) min = p; - if (i) + if (i > 0) min = p; if ((new = parse_cadef(nam, args))) { freecadef(*min); |