From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3525 invoked by alias); 23 Feb 2018 01:19:33 -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: List-Unsubscribe: X-Seq: 42390 Received: (qmail 24627 invoked by uid 1010); 23 Feb 2018 01:19:33 -0000 X-Qmail-Scanner-Diagnostics: from naara.laafc.net 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(49.212.139.33):SA:0(-1.9/5.0):. Processed in 7.9792 secs); 23 Feb 2018 01:19:33 -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.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: basse@naara.laafc.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | From: Takeshi Banse To: zsh-users@zsh.org Cc: zsh-workers@zsh.org, Takeshi Banse Subject: _path_files: fix copy paste error Date: Fri, 23 Feb 2018 10:19:22 +0900 Message-Id: <20180223011922.3523-1-thb@laafc.net> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180223002950.2892-1-thb@laafc.net> References: <20180223002950.2892-1-thb@laafc.net> Signed-off-by: Takeshi Banse --- I'm very sorry! I fixed the copy paste error in the previous patch. Completion/Unix/Type/_path_files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files index 8fbc21ffa..6a869defa 100644 --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -274,7 +274,7 @@ if [[ "$pre" = [^][*?#^\|\<\>\\]#(\`[^\`]#\`|\$)*/* && "$compstate[quote]" != \' orig="${orig[1,(in:i:)/][1,-2]}" donepath= prepaths=( '' ) -elif [[ "$pre" = \~\[* && "$compstate[quote]" = (|\`) ]]; then +elif [[ "$pre" = \~\[* && "$compstate[quote]" = (|\`) ]] && (($+functions[zsh_directory_name] || $+zsh_directory_name_functions)) && () { # It begins with `~[', so the characters from `$pre[3]' to before the -- 2.16.1