Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

extended compctl bug in 3.1.5



Hi,

I hope this example will illustrate two bugs in using the "R" pattern
in extended completion:

compctl -k '(foo bar)' -x 'R[bar,foo]' -k '(a b c)' \
             - 'R[foo,;]' -k '(1 2 3)' -- foobar

First, type "foobar foo", with no space after "foo" and hit TAB.  You
get a beep and no completions, because the 'R[foo,;]' clause is
matching even though you are not after but ON the word with prefix
'foo'.  I would expect it to complete "foo" by appending the suffix
space.

Second, type "foobar foo bar ", with a space after "bar".  Hit TAB and
you get the completions "a", "b", and "c", which you should not, as
you are not before "foo".

Please include me in any reply as I am not on the list.

thanks,
Greg



Messages sorted by: Reverse Date, Date, Thread, Author