zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] _zstyle vcs_info: Unbreak branchformat completion
@ 2015-01-24 15:26 Daniel Shahaf
  2015-01-25  0:45 ` Frank Terbeck
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Shahaf @ 2015-01-24 15:26 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 38 bytes --]

Trivial patch to fix an obvious typo.

[-- Attachment #2: 0001-_zstyle-vcs_info-Unbreak-branchformat-completion.patch --]
[-- Type: text/x-patch, Size: 964 bytes --]

>From 0a8b9f4e0fdef883813b368e79d4aa332f7d704d Mon Sep 17 00:00:00 2001
From: Daniel Shahaf <d.s@daniel.shahaf.name>
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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] _zstyle vcs_info: Unbreak branchformat completion
  2015-01-24 15:26 [PATCH] _zstyle vcs_info: Unbreak branchformat completion Daniel Shahaf
@ 2015-01-25  0:45 ` Frank Terbeck
  0 siblings, 0 replies; 2+ messages in thread
From: Frank Terbeck @ 2015-01-25  0:45 UTC (permalink / raw)
  To: zsh-workers

Daniel Shahaf wrote:
> Trivial patch to fix an obvious typo.
[...]
> -          'r[current revision number]' \
> +          'r[current revision number]'

Applied, thanks!


Regards, Frank


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-25  1:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-24 15:26 [PATCH] _zstyle vcs_info: Unbreak branchformat completion Daniel Shahaf
2015-01-25  0:45 ` Frank Terbeck

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).