From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18972 invoked by alias); 13 Jul 2016 05:07:56 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 38842 Received: (qmail 18440 invoked from network); 13 Jul 2016 05:07:56 -0000 X-Qmail-Scanner-Diagnostics: from hermes.apache.org by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(140.211.11.3):SA:0(-1.3/5.0):. Processed in 0.146532 secs); 13 Jul 2016 05:07:56 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RP_MATCHES_RCVD autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: danielsh@apache.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at apache.org does not designate permitted sender hosts) Date: Wed, 13 Jul 2016 05:00:33 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: Completion after anonymous function Message-ID: <20160713050033.GA6013@tarsus.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.23 (2014-03-12) «() {} » 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?