From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2175 invoked by alias); 20 Jun 2015 02:48:22 -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: 35539 Received: (qmail 20089 invoked from network); 20 Jun 2015 02:48:20 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=BnRtpA68/wi+e0/Nn8P+aJwHZzlcQyFu5TcDPpUIHi0=; b=RGN7NOJ9/hpVHk8HjXAyAF5mCc8APkhBu7JaFgIlTqHS3m2elfOlUKKza3VSwtaoaQ +xkzd5p9IRhdpsE7o2s4sut1IpG0kBugfYSb4DUBJD0yv3P7x8U5JkfIJYU3+82Cr2OF rchzllXReSryxNDb3R13ozBUe1UbOh7T2vEKI9CeddVfNAKsxi4MdrIVpdqcNQfdxu7r bDd/3kfACCzdyjFBHr4DytmD9ykUllYmZKAUOrQJMN9jWExi88j+RiaY6OyDpQTSqMLa fqrr41CYr7+UerY9WHbduxHV7WxKz4S2SAlEm/7/0cSNXclKwLUGXv/okPpkLh2YHiGf ESzg== X-Received: by 10.112.168.102 with SMTP id zv6mr20408025lbb.45.1434768497039; Fri, 19 Jun 2015 19:48:17 -0700 (PDT) From: Mikael Magnusson To: zsh-workers@zsh.org Subject: PATCH: Step two seems to take us there Date: Sat, 20 Jun 2015 04:48:08 +0200 Message-Id: <1434768488-15196-1-git-send-email-mikachu@gmail.com> X-Mailer: git-send-email 2.4.0 In-Reply-To: References: This change on top of the previous one seems to make things work when the foo in ~[foo] has a / in it. I'm not sick enough to try and make a \] in there work. Incidentally, it would be nice if the mail archive would include the message-id so you can pass it to git-send-email's --in-reply-to without looking it up in your own mail client. It does show the message-id for the message it replies to, which seems less useful. --- Completion/Unix/Type/_path_files | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files index f51db4a..3a0ae43 100644 --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -321,8 +321,8 @@ elif [[ "$pre[1]" = \~ && -z "$compstate[quote]" ]]; then fi linepath="~${linepath}/" [[ "$realpath" = "$linepath" ]] && return 1 - pre="${pre#*/}" - orig="${orig#*/}" + pre="${${pre#\~\[[^]]#]}#*/}" + orig="${${orig#\~\[[^]]#]}#*/}" donepath= prepaths=( '' ) else -- 2.4.0