git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
a7804a1
)
completion: zsh: fix splitting of words
author
Felipe Contreras
<redacted>
Wed, 28 Oct 2020 02:06:57 +0000
(20:06 -0600)
committer
Junio C Hamano
<redacted>
Wed, 28 Oct 2020 21:30:59 +0000
(14:30 -0700)
Files don't need to be split by '=:', words do.
Signed-off-by: Felipe Contreras <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/completion/git-completion.zsh
patch
|
blob
|
history
diff --git
a/contrib/completion/git-completion.zsh
b/contrib/completion/git-completion.zsh
index c5b875993ff8ea6aac4b28727e8ade1d23c7d297..d9ce5e1742e8436b829400a999e57fe22712d651 100644
(file)
--- a/
contrib/completion/git-completion.zsh
+++ b/
contrib/completion/git-completion.zsh
@@
-124,6
+124,7
@@
__gitcomp_nl_append ()
emulate -L zsh
local IFS=$'\n'
+ compset -P '*[=:]'
compadd -Q -S "${4- }" -p "${2-}" -- ${=1} && _ret=0
}
@@
-132,7
+133,6
@@
__gitcomp_file_direct ()
emulate -L zsh
local IFS=$'\n'
- compset -P '*[=:]'
compadd -f -- ${=1} && _ret=0
}
@@
-141,7
+141,6
@@
__gitcomp_file ()
emulate -L zsh
local IFS=$'\n'
- compset -P '*[=:]'
compadd -p "${2-}" -f -- ${=1} && _ret=0
}
git clone https://git.99rst.org/PROJECT