Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 2/2] _hg: check for both -r and --rev
- X-seq: zsh-workers 43348
- From: Anton Shestakov <av6@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 2/2] _hg: check for both -r and --rev
- Date: Wed, 29 Aug 2018 08:17:31 +0800
- Cc: Anton Shestakov <av6@xxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dwimlabs.net; s=20171204; t=1535501888; bh=DZp+UKe/yE8et6F6EuWBWH/FaYIAzp6EbnyMul+MOz0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hhSsABbG+otMRJu/rr5i55g5+JlZ5XCj2t6UrZBUPffcr4C8CUNwJZhIU1AGdGrxF FMLSAK0+Cg1xKrAYOE4G0TsINX6/SrdwsTZ9E264XSvGQbVO581fipKj0t3SuZN70t x1eJBwIffUeEEamC01PFmDEn/TW3OSqSOM4toucE=
- In-reply-to: <20180829001731.1856-1-av6@dwimlabs.net>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20180829001731.1856-1-av6@dwimlabs.net>
---
Completion/Unix/Command/_hg | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Completion/Unix/Command/_hg b/Completion/Unix/Command/_hg
index d92112e68..7b72605b3 100644
--- a/Completion/Unix/Command/_hg
+++ b/Completion/Unix/Command/_hg
@@ -567,7 +567,7 @@ _hg_cmd_diff() {
if [[ $state == 'diff_files' ]]
then
- if [[ -n $opt_args[-r] ]]
+ if [[ -n ${opt_args[(I)-r|--rev]} ]]
then
_hg_files && ret=0
else
@@ -795,7 +795,7 @@ _hg_cmd_revert() {
if [[ $state == 'diff_files' ]]
then
- if [[ -n $opt_args[-r] ]]
+ if [[ -n ${opt_args[(I)-r|--rev]} ]]
then
_hg_files && ret=0
else
--
2.11.0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author