Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Why does _main_complete not try the next completer when $_comp_mesg is non-zero?
- X-seq: zsh-workers 48287
- From: Marlon Richert <marlon.richert@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Why does _main_complete not try the next completer when $_comp_mesg is non-zero?
- Date: Sun, 28 Mar 2021 19:33:09 +0300
- Archived-at: <https://zsh.org/workers/48287>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-03/CAHLkEDt%2B5xiu62fLb2Gp9gQOh9Q_o8%2B-He64fooMMxPceon4vA%40mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
The following line in _main_complete
[[ -n "$_comp_mesg" ]] && break
has the effect that, whenever _message has been called (with only few
exceptions), the next completer won't be tried, _even when
$compstate[nmatches] is zero._
Why? What is the reason for this?
And is there a convenient way to work around this behavior? I want
_history to be tried when _complete fails, but this behavior often
prevents it. For example, if I try `grep \t`, then I get only the
message `pattern`, whereas I would like to get history words.
And if there is not an easy workaround, would you accept a patch from
me that changes this?
—Marlon
Messages sorted by:
Reverse Date,
Date,
Thread,
Author