From 0d7be4af0dc6efa30a187ba4f897f773460a2944 Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Thu, 25 Jun 2015 00:22:02 +0900 Subject: 35550: fix backspace in interactive menu-select --- Src/Zle/complist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src/Zle/complist.c') 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); -- cgit 1.4.1