about summary refs log tree commit diff
path: root/Src/Zle/zle_main.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2015-09-29 06:11:24 +0200
committerMikael Magnusson <mikachu@gmail.com>2015-10-01 03:51:44 +0200
commita855d7bd246ef44d5393c3088aae8214d41d2b85 (patch)
treea54873d853f8ef2c1d652788fb142dfd53bdb1c3 /Src/Zle/zle_main.c
parenta90cf551efc92184ab25da25b837296d1c4edc8a (diff)
downloadzsh-a855d7bd246ef44d5393c3088aae8214d41d2b85.tar.gz
zsh-a855d7bd246ef44d5393c3088aae8214d41d2b85.tar.xz
zsh-a855d7bd246ef44d5393c3088aae8214d41d2b85.zip
36709: zle -f from inside widget to set flags and make yank start/end zle params writable
Diffstat (limited to 'Src/Zle/zle_main.c')
-rw-r--r--Src/Zle/zle_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index 992f152df..593d636cc 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -1402,7 +1402,8 @@ execzlefunc(Thingy func, char **args, int set_bindk)
 	    opts[XTRACE] = oxt;
 	    sfcontext = osc;
 	    endparamscope();
-	    lastcmd = 0;
+	    lastcmd = w->flags;
+	    w->flags = 0;
 	    r = 1;
 	    redup(osi, 0);
 	}
@@ -1981,7 +1982,7 @@ zle_main_entry(int cmd, va_list ap)
 static struct builtin bintab[] = {
     BUILTIN("bindkey", 0, bin_bindkey, 0, -1, 0, "evaM:ldDANmrsLRp", NULL),
     BUILTIN("vared",   0, bin_vared,   1,  1, 0, "aAcef:hi:M:m:p:r:t:", NULL),
-    BUILTIN("zle",     0, bin_zle,     0, -1, 0, "aAcCDFgGIKlLmMNrRTUw", NULL),
+    BUILTIN("zle",     0, bin_zle,     0, -1, 0, "aAcCDfFgGIKlLmMNrRTUw", NULL),
 };
 
 /* The order of the entries in this table has to match the *HOOK