zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-workers@zsh.org
Subject: Completion after anonymous function
Date: Wed, 13 Jul 2016 05:00:33 +0000	[thread overview]
Message-ID: <20160713050033.GA6013@tarsus.local2> (raw)

«() {} <TAB>» completes as a command position:

% () {} «_complete_help»
tags in context :completion::complete:-command-::
    commands builtins functions aliases suffix-aliases reserved-words jobs parameters  (_command_names _autocd) 
    commands                                                                           (_path_commands _command_names _autocd) 
    jobs                                                                               (_jobs _command_names _autocd) 
    parameters                                                                         (_parameters _command_names _autocd)

I guess it should just use _default, like unrecognised command words.

Tracing, _complete sees [[ $compstate[context] == normal ]] — which
seems correct — and then the «if [[ CURRENT -eq 1 ]]» in _normal is
entered; I guess that's the problem?


             reply	other threads:[~2016-07-13  5:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-13  5:00 Daniel Shahaf [this message]
2016-07-13 10:47 ` Mikael Magnusson
2016-07-13 17:28 ` Bart Schaefer

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=20160713050033.GA6013@tarsus.local2 \
    --to=d.s@daniel.shahaf.name \
    --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).