Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] _zstyle vcs_info: Unbreak branchformat completion



Trivial patch to fix an obvious typo.
From 0a8b9f4e0fdef883813b368e79d4aa332f7d704d Mon Sep 17 00:00:00 2001
From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
Date: Sat, 24 Jan 2015 08:05:02 +0000
Subject: [PATCH 1/2] _zstyle vcs_info: Unbreak branchformat completion

The failure mode was:

    % zstyle ':vcs_info:*' branchformat "foobar%<TAB>
    _values:compvalues:10: no multi-letter values with empty separator allowed
---
 Completion/Zsh/Command/_zstyle | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Completion/Zsh/Command/_zstyle b/Completion/Zsh/Command/_zstyle
index eb27117..c8e1c2b 100644
--- a/Completion/Zsh/Command/_zstyle
+++ b/Completion/Zsh/Command/_zstyle
@@ -549,7 +549,7 @@ while (( $#state )); do
         compset -P '*%'
         _values -s '' 'format replacement' \
           'b[the current branch]' \
-          'r[current revision number]' \
+          'r[current revision number]'
       else
         _message -e formats 'vcs format'
       fi
-- 
1.9.1



Messages sorted by: Reverse Date, Date, Thread, Author