mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-06-27 00:11:00 +02:00
users/29070: clean up tokens in cmdstr before compctl completion
This commit is contained in:
parent
f376f95c47
commit
8943b5e450
2 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
||||||
2023-05-11 Bart Schaefer <schaefer@zsh.org>
|
2023-05-11 Bart Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
|
* users/29070: Src/Zle/zle_tricky.c: clean up tokens in cmdstr
|
||||||
|
before attempting completion (compctl only)
|
||||||
|
|
||||||
* Jim <linux.tech.guy@gmail.com>: 51609: Doc/Zsh/mod_zselect.yo:
|
* Jim <linux.tech.guy@gmail.com>: 51609: Doc/Zsh/mod_zselect.yo:
|
||||||
fix reference to select(2)
|
fix reference to select(2)
|
||||||
|
|
||||||
|
|
|
@ -1315,6 +1315,8 @@ get_comp_string(void)
|
||||||
ins = (tok == REPEAT ? 2 : (tok != STRING && tok != TYPESET));
|
ins = (tok == REPEAT ? 2 : (tok != STRING && tok != TYPESET));
|
||||||
zsfree(cmdstr);
|
zsfree(cmdstr);
|
||||||
cmdstr = ztrdup(tokstr);
|
cmdstr = ztrdup(tokstr);
|
||||||
|
untokenize(cmdstr);
|
||||||
|
remnulargs(cmdstr);
|
||||||
cmdtok = tok;
|
cmdtok = tok;
|
||||||
/*
|
/*
|
||||||
* If everything before is a redirection, or anything
|
* If everything before is a redirection, or anything
|
||||||
|
|
Loading…
Reference in a new issue