diff options
author | Bart Schaefer <schaefer@zsh.org> | 2023-05-11 12:37:52 -0700 |
---|---|---|
committer | Bart Schaefer <schaefer@zsh.org> | 2023-05-11 12:37:52 -0700 |
commit | 8943b5e4505faec8d02e8535417491a87fc74d4e (patch) | |
tree | 72174602fdc6b05ec3d38be5806b33e5245da873 /Src/Zle | |
parent | f376f95c47202fb1c00f41577347e25ed5d37439 (diff) | |
download | zsh-8943b5e4505faec8d02e8535417491a87fc74d4e.tar.gz zsh-8943b5e4505faec8d02e8535417491a87fc74d4e.tar.xz zsh-8943b5e4505faec8d02e8535417491a87fc74d4e.zip |
users/29070: clean up tokens in cmdstr before compctl completion
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/zle_tricky.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c index 690cf6efb..6ceb5d87f 100644 --- a/Src/Zle/zle_tricky.c +++ b/Src/Zle/zle_tricky.c @@ -1315,6 +1315,8 @@ get_comp_string(void) ins = (tok == REPEAT ? 2 : (tok != STRING && tok != TYPESET)); zsfree(cmdstr); cmdstr = ztrdup(tokstr); + untokenize(cmdstr); + remnulargs(cmdstr); cmdtok = tok; /* * If everything before is a redirection, or anything |