zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: $( <Tab> has CURRENT=1, $(( <Tab> has CURRENT=0
Date: Thu, 14 Jan 2016 19:04:24 -0800	[thread overview]
Message-ID: <160114190424.ZM18329@torch.brasslantern.com> (raw)
In-Reply-To: <CAKc7PVBMqngEu2KvyWvPVGYw7_zZ6DadpT+KV6msw9Mm8tkHCw@mail.gmail.com>

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.


      reply	other threads:[~2016-01-15  3:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-14  9:19 Sebastian Gniazdowski
2016-01-15  3:04 ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=160114190424.ZM18329@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).