diff options
| author | Anton Shestakov <av6@dwimlabs.net> | 2018-08-29 08:17:31 +0800 |
|---|---|---|
| committer | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-08-29 17:27:31 +0200 |
| commit | fcb4f7956799c1e0803c0cb37ee3d17c230d7dcc (patch) | |
| tree | b0d9f89d2d3381299328e9a04127696448c0351b /Completion | |
| parent | 43347: _hg: use revsets for suggestions for hg merge (diff) | |
| download | zsh-fcb4f7956799c1e0803c0cb37ee3d17c230d7dcc.tar zsh-fcb4f7956799c1e0803c0cb37ee3d17c230d7dcc.tar.gz zsh-fcb4f7956799c1e0803c0cb37ee3d17c230d7dcc.tar.bz2 zsh-fcb4f7956799c1e0803c0cb37ee3d17c230d7dcc.tar.lz zsh-fcb4f7956799c1e0803c0cb37ee3d17c230d7dcc.tar.xz zsh-fcb4f7956799c1e0803c0cb37ee3d17c230d7dcc.tar.zst zsh-fcb4f7956799c1e0803c0cb37ee3d17c230d7dcc.zip | |
43348: _hg: check for both -r and --rev
Diffstat (limited to 'Completion')
| -rw-r--r-- | Completion/Unix/Command/_hg | 4 |
1 files 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 |
