mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-13 11:21:13 +02:00
48954: avoid crash in reverse-menu-complete from menuselect without 'menu' in $compstate[insert]
This commit is contained in:
parent
f4b2a03625
commit
978c4907b6
2 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
|||
2021-06-02 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 48954: Src/Zle/complist.c: avoid crash in reverse-menu-complete
|
||||
from menuselect without 'menu' in $compstate[insert]
|
||||
|
||||
* 48952: Completion/Unix/Command/_perl: expand octal codes for
|
||||
record separators in perl completion
|
||||
|
||||
|
|
|
@ -3277,9 +3277,8 @@ domenuselect(Hookdef dummy, Chdata dat)
|
|||
!strcmp(cmd->nam, "reverse-menu-complete")) {
|
||||
mode = 0;
|
||||
comprecursive = 1;
|
||||
unmetafy_line();
|
||||
reversemenucomplete(zlenoargs);
|
||||
metafy_line();
|
||||
zmult = -zmult;
|
||||
do_menucmp(0);
|
||||
mselect = (*(minfo.cur))->gnum;
|
||||
setwish = 1;
|
||||
mline = -1;
|
||||
|
|
Loading…
Reference in a new issue