Skip to content

Commit 94b2901

Browse files
felipecgitster
authored andcommitted
completion: zsh: fix splitting of words
Files don't need to be split by '=:', words do. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent a7804a1 commit 94b2901

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

contrib/completion/git-completion.zsh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ __gitcomp_nl_append ()
124124
emulate -L zsh
125125

126126
local IFS=$'\n'
127+
compset -P '*[=:]'
127128
compadd -Q -S "${4- }" -p "${2-}" -- ${=1} && _ret=0
128129
}
129130

@@ -132,7 +133,6 @@ __gitcomp_file_direct ()
132133
emulate -L zsh
133134

134135
local IFS=$'\n'
135-
compset -P '*[=:]'
136136
compadd -f -- ${=1} && _ret=0
137137
}
138138

@@ -141,7 +141,6 @@ __gitcomp_file ()
141141
emulate -L zsh
142142

143143
local IFS=$'\n'
144-
compset -P '*[=:]'
145144
compadd -p "${2-}" -f -- ${=1} && _ret=0
146145
}
147146

0 commit comments

Comments
 (0)