1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-05-10 19:10:51 +02:00

53360: domenuselect() fails if the previous completion did not generate a list

(fix for segfault)
This commit is contained in:
Bart Schaefer 2025-02-12 20:11:47 -08:00
parent 6b25a593d9
commit 3ce354c049
2 changed files with 6 additions and 0 deletions

View file

@ -1,5 +1,8 @@
2025-02-12 Bart Schaefer <schaefer@zsh.org>
* 53360: Src/Zle/complist.c: domenuselect() fails if the previous
completion did not generate a list (fix for segfault)
* 53346 (cf. 53350): Util/helpfiles: fix use of "man" on file paths
* 53348: Doc/Zsh/builtins.yo, Src/builtin.c, Test/K01nameref.ztst:

View file

@ -2391,6 +2391,9 @@ domenuselect(Hookdef dummy, Chdata dat)
char *s;
char status[MAX_STATUS], *modeline = NULL;
if (! hasoldlist)
return 2;
msearchstack = NULL;
msearchstr = "";
msearchstate = MS_OK;