zsh-workers
 help / color / mirror / code / Atom feed
* Why does _main_complete not try the next completer when $_comp_mesg is non-zero?
@ 2021-03-28 16:33 Marlon Richert
  2021-03-28 17:10 ` Mikael Magnusson
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Marlon Richert @ 2021-03-28 16:33 UTC (permalink / raw)
  To: Zsh hackers list

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


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2021-04-05 10:26 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-28 16:33 Why does _main_complete not try the next completer when $_comp_mesg is non-zero? Marlon Richert
2021-03-28 17:10 ` Mikael Magnusson
2021-03-28 17:27   ` Marlon Richert
2021-03-28 17:46 ` Bart Schaefer
2021-03-28 18:06   ` Marlon Richert
2021-03-28 20:51     ` Bart Schaefer
2021-03-28 21:42 ` Oliver Kiddle
2021-03-29  1:22   ` Bart Schaefer
2021-03-31  6:29   ` Marlon Richert
2021-03-31  9:25     ` Oliver Kiddle
2021-03-31 10:07       ` Marlon Richert
2021-03-31 23:20     ` Daniel Shahaf
2021-04-01  5:11       ` Marlon Richert
2021-04-01 17:08         ` Daniel Shahaf
2021-04-02 12:58           ` Marlon Richert
2021-04-03  3:12           ` Daniel Shahaf
2021-04-05 10:26             ` Marlon Richert

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).