|
|
560f4e |
From 075bb94e05771e5f7132c35811c0d19d03ceda16 Mon Sep 17 00:00:00 2001
|
|
|
560f4e |
From: Axel Beckert <abe@deuxchevaux.org>
|
|
|
560f4e |
Date: Wed, 18 Sep 2013 23:50:04 +0200
|
|
|
560f4e |
Subject: [PATCH 1/2] 31735: fix off-by-one in completion utility cache code.
|
|
|
560f4e |
Was causing crashes in complex completions, particularly with taskwarrior
|
|
|
560f4e |
|
|
|
560f4e |
Upstream-commit: 844e569b632fc032576edc039f793be47fde724e
|
|
|
560f4e |
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
|
|
|
560f4e |
---
|
|
|
560f4e |
Src/Zle/computil.c | 2 +-
|
|
|
560f4e |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
560f4e |
|
|
|
560f4e |
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
|
|
|
560f4e |
index cd508d0..2c323ee 100644
|
|
|
560f4e |
--- a/Src/Zle/computil.c
|
|
|
560f4e |
+++ b/Src/Zle/computil.c
|
|
|
560f4e |
@@ -2992,7 +2992,7 @@ get_cvdef(char *nam, char **args)
|
|
|
560f4e |
return *p;
|
|
|
560f4e |
} else if (!min || !*p || (*p)->lastt < (*min)->lastt)
|
|
|
560f4e |
min = p;
|
|
|
560f4e |
- if (i)
|
|
|
560f4e |
+ if (i > 0)
|
|
|
560f4e |
min = p;
|
|
|
560f4e |
if ((new = parse_cvdef(nam, args))) {
|
|
|
560f4e |
freecvdef(*min);
|
|
|
560f4e |
--
|
|
|
560f4e |
2.5.5
|
|
|
560f4e |
|
|
|
560f4e |
|
|
|
560f4e |
From b5f4eda96e0543693334ccc6ada2f87ab60cd7c7 Mon Sep 17 00:00:00 2001
|
|
|
560f4e |
From: "Barton E. Schaefer" <schaefer@zsh.org>
|
|
|
560f4e |
Date: Thu, 19 Sep 2013 07:55:53 -0700
|
|
|
560f4e |
Subject: [PATCH 2/2] 31737: same loop counter fix in get_cadef as get_cvdef.
|
|
|
560f4e |
|
|
|
560f4e |
Upstream-commit: 61deff76f22310ce9e10dd2174b8cf8e48c678ee
|
|
|
560f4e |
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
|
|
|
560f4e |
---
|
|
|
560f4e |
Src/Zle/computil.c | 2 +-
|
|
|
560f4e |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
560f4e |
|
|
|
560f4e |
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
|
|
|
560f4e |
index 2c323ee..f8983c3 100644
|
|
|
560f4e |
--- a/Src/Zle/computil.c
|
|
|
560f4e |
+++ b/Src/Zle/computil.c
|
|
|
560f4e |
@@ -1608,7 +1608,7 @@ get_cadef(char *nam, char **args)
|
|
|
560f4e |
return *p;
|
|
|
560f4e |
} else if (!min || !*p || (*p)->lastt < (*min)->lastt)
|
|
|
560f4e |
min = p;
|
|
|
560f4e |
- if (i)
|
|
|
560f4e |
+ if (i > 0)
|
|
|
560f4e |
min = p;
|
|
|
560f4e |
if ((new = parse_cadef(nam, args))) {
|
|
|
560f4e |
freecadef(*min);
|
|
|
560f4e |
--
|
|
|
560f4e |
2.5.5
|
|
|
560f4e |
|