Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Step two seems to take us there
- X-seq: zsh-workers 35539
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: Step two seems to take us there
- Date: Sat, 20 Jun 2015 04:48:08 +0200
- 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==
- In-reply-to: <CAHYJk3SZqG1KCRLGYPHRg+wyQ3msOKGJeuQRwn9+c65gmnQPwg@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAHYJk3SZqG1KCRLGYPHRg+wyQ3msOKGJeuQRwn9+c65gmnQPwg@mail.gmail.com>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author