about summary refs log tree commit diff
path: root/Src/Zle/complist.c
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2015-06-25 00:22:02 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2015-06-25 00:23:25 +0900
commit0d7be4af0dc6efa30a187ba4f897f773460a2944 (patch)
tree1afebe4911d66482550c8fa2199f4b0587b24fef /Src/Zle/complist.c
parent77130df6747c94c44ea4cb522177d611a24fd5d0 (diff)
downloadzsh-0d7be4af0dc6efa30a187ba4f897f773460a2944.tar.gz
zsh-0d7be4af0dc6efa30a187ba4f897f773460a2944.tar.xz
zsh-0d7be4af0dc6efa30a187ba4f897f773460a2944.zip
35550: fix backspace in interactive menu-select
Diffstat (limited to 'Src/Zle/complist.c')
-rw-r--r--Src/Zle/complist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c
index 0f73181f3..ccee9a724 100644
--- a/Src/Zle/complist.c
+++ b/Src/Zle/complist.c
@@ -2655,7 +2655,7 @@ domenuselect(Hookdef dummy, Chdata dat)
 	    s->nbrbeg = nbrbeg;
 	    s->nbrend = nbrend;
 	    s->nmatches = nmatches;
-	    s->origline = origline;
+	    s->origline = dupstring(origline);
 	    s->origcs = origcs;
 	    s->origll = origll;
             s->status = dupstring(status);
@@ -2786,7 +2786,7 @@ domenuselect(Hookdef dummy, Chdata dat)
 	    s->nbrbeg = nbrbeg;
 	    s->nbrend = nbrend;
 	    s->nmatches = nmatches;
-	    s->origline = origline;
+	    s->origline = dupstring(origline);
 	    s->origcs = origcs;
 	    s->origll = origll;
             s->status = dupstring(status);