mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-30 07:10:58 +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>
|
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
|
* 48952: Completion/Unix/Command/_perl: expand octal codes for
|
||||||
record separators in perl completion
|
record separators in perl completion
|
||||||
|
|
||||||
|
|
|
@ -3277,9 +3277,8 @@ domenuselect(Hookdef dummy, Chdata dat)
|
||||||
!strcmp(cmd->nam, "reverse-menu-complete")) {
|
!strcmp(cmd->nam, "reverse-menu-complete")) {
|
||||||
mode = 0;
|
mode = 0;
|
||||||
comprecursive = 1;
|
comprecursive = 1;
|
||||||
unmetafy_line();
|
zmult = -zmult;
|
||||||
reversemenucomplete(zlenoargs);
|
do_menucmp(0);
|
||||||
metafy_line();
|
|
||||||
mselect = (*(minfo.cur))->gnum;
|
mselect = (*(minfo.cur))->gnum;
|
||||||
setwish = 1;
|
setwish = 1;
|
||||||
mline = -1;
|
mline = -1;
|
||||||
|
|
Loading…
Reference in a new issue