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

Re: Annoying zsh completion



On 12 January 2012 00:06, Greg Klanderman <gak@xxxxxxxxxxxxxx> wrote:
>>>>>> On January 10, 2012 Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
>> If it only occurs with sudo, it explains everything because then vim
>> is not a command, but an argument to the command sudo.
>
> Doesn't this then mean that it is a bug in the sudo completion?
> i.e. not treating the first argument as a command?
> Or is that just how correction works? (I do not use it)

Correction is applied when the command is run, by zle. It has no
knowledge of the completion system. Setting CORRECT_ALL (the most
annoying option ever) will correct any argument that is close to a
filename in the current dir.

-- 
Mikael Magnusson



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