Skip to content

Commit cf6ce01

Browse files
felipecgitster
authored andcommitted
completion: zsh: simplify nl_append
It's exactly the same as __gitcomp_nl(), no need to duplicate code. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 35e29fb commit cf6ce01

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

contrib/completion/git-completion.zsh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,7 @@ __gitcomp_nl ()
119119

120120
__gitcomp_nl_append ()
121121
{
122-
emulate -L zsh
123-
124-
compset -P '*[=:]'
125-
compadd -Q -S "${4- }" -p "${2-}" -- ${(f)1} && _ret=0
122+
__gitcomp_nl "$@"
126123
}
127124

128125
__gitcomp_file_direct ()

0 commit comments

Comments
 (0)