From 949f5b6deefb7d4944f1b59fe2264ac0821a3304 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 25 Apr 2006 15:00:25 +0000 Subject: 22431: set WIDGET etc. more consistently when executing zle functions --- Src/Zle/zle_thingy.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Src/Zle/zle_thingy.c') diff --git a/Src/Zle/zle_thingy.c b/Src/Zle/zle_thingy.c index 209949df2..140aeb06a 100644 --- a/Src/Zle/zle_thingy.c +++ b/Src/Zle/zle_thingy.c @@ -639,7 +639,7 @@ zle_usable() static int bin_zle_call(char *name, char **args, UNUSED(Options ops), UNUSED(char func)) { - Thingy t, savbindk = bindk; + Thingy t; struct modifier modsave = zmod; int ret, saveflag = 0, setbindk = 0; char *wname = *args++, *keymap_restore = NULL, *keymap_tmp; @@ -704,10 +704,7 @@ bin_zle_call(char *name, char **args, UNUSED(Options ops), UNUSED(char func)) } t = rthingy(wname); - if (setbindk) - bindk = t; - ret = execzlefunc(t, args); - bindk = savbindk; + ret = execzlefunc(t, args, setbindk); unrefthingy(t); if (saveflag) zmod = modsave; -- cgit 1.4.1