Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_complete_help fails in some contexts
- X-seq: zsh-workers 48789
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: _complete_help fails in some contexts
- Date: Fri, 7 May 2021 14:53:06 -0700
- Archived-at: <https://zsh.org/workers/48789>
- List-id: <zsh-workers.zsh.org>
This occurs for example when pressing ^Xh immediately after:
% : ${()
In this specific case it seems to be because _parameters never calls
_describe, so never goes through the _tags loop, which _complete_help
relies upon to populate its results. It calls _description directly
(instead?).
On cursory inspection, most completion functions do one of: call
_describe; call both _tags and _description; or call _description but
then call another function (such as _files) that does one of those
first two.
I haven't come up with a simple way to find examples other than
_parameters that never manage to call _tags at all.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author