Open HIDE-r opened 3 months ago
This bug can be reproduced without fzf-tab:
> autoload -U compinit; compinit
_tst() {
local -a subcmds topics
subcmds=('c:description for c command' 'd:description for d command')
topics=('c:description for c command' 'd:description for d command')
_describe 'command' subcmds topics
}
compdef _tst tst
zstyle ':completion:*' menu yes select search
zstyle ':completion:*' list-grouped false
> tst # press tab here
Quite strange, it may be a bug of _describe or compsys.
Maybe. It looks strange. What should I do about this issue next? report to zsh?
I am not sure, this seems to be a known issue:
https://github.com/zsh-users/zsh/blob/master/Completion/Base/Utility/_describe#L3-L8
Temporary workaround for anyone encountering this problem:
zstyle ':completion:*:complete:networkctl:*' list-grouped true
Describe the bug
A clear and concise description of what the bug is.
I can make sure:
compinit
To Reproduce
Steps to reproduce the behavior:
Expected behavior
There should be no extra characters('description\ for\ c\ command')
Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
Minimal zshrc
Log
zsh-48936-fzf-tab-1.log