Subject: Re: $( <Tab> has CURRENT=1, $(( <Tab> has CURRENT=0
From: Bart Schaefer <[email-masked]>
To: Zsh hackers list <[email-masked]>
Date: Thu, 14 Jan 2016 19:04:24 -0800
List-Id: Zsh Workers List <zsh-workers.zsh.org>

On Jan 14, 10:19am, Sebastian Gniazdowski wrote:
} Subject: $( <Tab> has CURRENT=1, $(( <Tab> has CURRENT=0
}
} in both cases words array is empty, so CURRENT=0 seems to be more
} logical value. Maybe something bigger is hidden behind this.

CURRENT=1 indicates the completion is in command position, even if there
is no command present yet.  The command name is always the "first word"
even if that is so far an empty word.

CURRENT=0 only makes sense in contexts where there is no command position
at all.