1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00

21592: browsing new directory from menu selection crashed

This commit is contained in:
Peter Stephenson 2005-08-10 11:59:28 +00:00
parent 2a888b3d5a
commit 0c301a8af6
2 changed files with 6 additions and 0 deletions

@ -1,5 +1,8 @@
2005-08-10 Peter Stephenson <pws@csr.com>
* 21592: Src/Zle/complist.c: attempt to browse a new directory
in menu selection caused crash.
* c.f. 21590: Src/hist.c, Src/lex.c, Src/utils.c,
Src/Zle/compcore.c, Src/Zle/compctl.c, Src/Zle/complist.c,
Src/Zle/compresult.c, Src/Zle/zle.h, Src/Zle/zle_hist.c,

@ -2303,7 +2303,10 @@ domenuselect(Hookdef dummy, Chdata dat)
iforcemenu = -1;
} else
mode = 0;
/* Nested completion assumes line is unmetafied */
unmetafy_line();
menucomplete(zlenoargs);
metafy_line();
iforcemenu = 0;
if (cmd != Th(z_acceptandinfernexthistory))