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

Re: [PATCH] _git: auto-removable '..' suffix: remove at the end of lines



On Mar 23,  4:41am, m0viefreak wrote:
}
}    Thus `-S "=" -q' is the same as `-S "=" -r "= \t\n\-"'.
} 
} Giving -q AND -r is superfluous, so I removed -q.

Ah!  Looking at the code in compresult.c and zle_misc.c, I believe it's
the case that -q and -r are not merely superfluous, they ought to be
mutually exclusive:  -q is for all practical purposes ignored if -r is
also given.

It appears that -r also causes $ZLE_SPACE_SUFFIX_CHARS to be ignored (it
is probably obvious that -r supplants $ZLE_REMOVE_SUFFIX_CHARS).

The part about (not) boldfacing remains a mystery.

In addition to _git, _nslookup also passes both -q and -r to compadd, so
it presumably has similar breakage.



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