blob: a43ea5be771489c443fc8f5a70ccc8433e89b19a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
Description: Fixes segfault on "task <Tab><Tab>"
Bug: http://www.zsh.org/mla/workers/2013/msg00772.html
Forwarded: http://www.zsh.org/mla/workers/2013/msg00790.html
Author: Axel Beckert <abe@debian.org>
Applied-Upstream: http://sourceforge.net/p/zsh/code/ci/844e569b632fc032576edc039f793be47fde724e/
Index: zsh/Src/Zle/computil.c
===================================================================
--- zsh.orig/Src/Zle/computil.c 2013-09-18 23:09:08.000000000 +0200
+++ zsh/Src/Zle/computil.c 2013-09-18 23:28:55.000000000 +0200
@@ -2992,7 +2992,7 @@
return *p;
} else if (!min || !*p || (*p)->lastt < (*min)->lastt)
min = p;
- if (i)
+ if (i > 0)
min = p;
if ((new = parse_cvdef(nam, args))) {
freecvdef(*min);
|