summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_git2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 873e26fce..c0ddf3429 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-09-01  Daniel Shahaf  <d.s@daniel.shahaf.name>
+
+	* 36353: Completion/Unix/Command/_git: _git: Unbreak after
+	previous.
+
 2015-08-30  Mateusz Karbowy  <mateusz.karbowy@gmail.com>
 
 	* 36328 + 36340: Completion/Unix/Command/_git: _git-cherry-pick:
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 2c79ed07a..7f7c3ebc7 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5645,7 +5645,7 @@ __git_recent_commits () {
   zparseopts -D -E O:=argument_array_names
   # Turn (-O foo:bar) to (foo bar)
   (( $#argument_array_names )) && argument_array_names=( "${(@s/:/)argument_array_names[2]}" )
-  (( $#argument_array_names > 1 )) && && ${(P)+argument_array_names[2]} &&
+  (( $#argument_array_names > 1 )) && (( ${(P)+argument_array_names[2]} )) &&
     commit_opts=( "${(@P)argument_array_names[2]}" )
 
   # Careful: most %d will expand to the empty string.  Quote properly!