summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Functions/VCS_Info/VCS_INFO_set-patch-format4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 647ae5ca9..3726cf2e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2017-02-03  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
+	* 40478: Functions/VCS_Info/VCS_INFO_set-patch-format: vcs_info
+	set-patch-format: Guard against empty variable elision.
+
 	* 40476: Doc/Zsh/contrib.yo, Functions/VCS_Info/VCS_INFO_quilt:
 	vcs_info $backend_misc: Document at the right point, provide
 	in quilt 'standalone' mode.
diff --git a/Functions/VCS_Info/VCS_INFO_set-patch-format b/Functions/VCS_Info/VCS_INFO_set-patch-format
index 84febabd9..c0617044c 100644
--- a/Functions/VCS_Info/VCS_INFO_set-patch-format
+++ b/Functions/VCS_Info/VCS_INFO_set-patch-format
@@ -43,9 +43,9 @@
 
     hook_com=(
       applied-n ${(P)#1}
-      applied ${(P)2}
+      applied "${(P)2}"
       unapplied-n ${(P)#3}
-      unapplied ${(P)4}
+      unapplied "${(P)4}"
     )
     hook_com[all-n]=$(( ${hook_com[applied-n]} + ${hook_com[unapplied-n]} ))
 }