From 233945b58b6bd3b362bf4f4ebd9c36869964568f Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 25 Jul 2020 18:52:16 +0200 Subject: [PATCH] completions/git.fish: fix completions for "git config" gui.fontui can be like "-family ..." --- share/completions/git.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/git.fish b/share/completions/git.fish index 8ba1934a7..a5a76e47a 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -554,7 +554,7 @@ function __fish_git_config_keys # With -z, key and value are separated by space, not "=" git config -lz | while read -lz key value # Print only first line of value(with an ellipsis) if multiline - printf '%s\t%s\n' $key (string replace \n …\n $value)[1] + printf '%s\t%s\n' $key (string replace \n …\n -- $value)[1] end # Print all recognized config keys; duplicates are not shown twice by fish printf '%s\n' (__fish_git help --config)[1..-2] # Last line is a footer; ignore it