about summary refs log tree commit diff
path: root/Src/Zle/zle_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Zle/zle_main.c')
-rw-r--r--Src/Zle/zle_main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index dfb437308..13f3cc402 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -640,7 +640,7 @@ execzlefunc(Thingy func)
 	    zsfree(msg);
 	    feep();
 	} else {
-	    int osc = sfcontext;
+	    int osc = sfcontext, osi = movefd(0);
 
 	    startparamscope();
 	    makezleparams(0);
@@ -650,6 +650,7 @@ execzlefunc(Thingy func)
 	    endparamscope();
 	    lastcmd = 0;
 	    r = 1;
+	    redup(osi, 0);
 	}
     }
     if (r) {
@@ -952,6 +953,7 @@ setup_zle(Module m)
     makecomplistcallptr = makecomplistcall;
     makecomplistctlptr = makecomplistctl;
     unambig_dataptr = unambig_data;
+    set_comp_sepptr = set_comp_sep;
 
     /* initialise the thingies */
     init_thingies();
@@ -1027,6 +1029,7 @@ finish_zle(Module m)
     makecomplistcallptr = NULL;
     makecomplistctlptr = NULL;
     unambig_dataptr = NULL;
+    set_comp_sepptr = NULL;
 
     return 0;
 }