mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-26 04:30:27 +01:00
24959: crash with ^D in compctl
This commit is contained in:
parent
0ef4ecefc7
commit
1663a63196
2 changed files with 11 additions and 6 deletions
|
|
@ -1188,6 +1188,12 @@ do_menucmp(int lst)
|
|||
{
|
||||
int was_meta;
|
||||
|
||||
/* Just list the matches if the list was requested. */
|
||||
if (lst == COMP_LIST_COMPLETE) {
|
||||
showinglist = -2;
|
||||
return;
|
||||
}
|
||||
|
||||
/* Already metafied when called from domenuselect already */
|
||||
if (zlemetaline == NULL) {
|
||||
was_meta = 0;
|
||||
|
|
@ -1195,12 +1201,6 @@ do_menucmp(int lst)
|
|||
} else
|
||||
was_meta = 1;
|
||||
|
||||
/* Just list the matches if the list was requested. */
|
||||
if (lst == COMP_LIST_COMPLETE) {
|
||||
showinglist = -2;
|
||||
return;
|
||||
}
|
||||
|
||||
/* Otherwise go to the next match in the array... */
|
||||
do {
|
||||
if (!*++(minfo.cur)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue