Skip to content

Commit 2df7683

Browse files
committed
Merge branch 'fc/completion-zsh' into sg/completion-updates
* fc/completion-zsh: git-completion: fix regression in zsh support
2 parents 1a0c9a3 + 52fd972 commit 2df7683

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

contrib/completion/git-completion.bash

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2608,6 +2608,10 @@ _git ()
26082608
if [[ -n ${ZSH_VERSION-} ]]; then
26092609
emulate -L bash
26102610
setopt KSH_TYPESET
2611+
2612+
# workaround zsh's bug that leaves 'words' as a special
2613+
# variable in versions < 4.3.12
2614+
typeset -h words
26112615
fi
26122616

26132617
local cur words cword prev
@@ -2659,6 +2663,10 @@ _gitk ()
26592663
if [[ -n ${ZSH_VERSION-} ]]; then
26602664
emulate -L bash
26612665
setopt KSH_TYPESET
2666+
2667+
# workaround zsh's bug that leaves 'words' as a special
2668+
# variable in versions < 4.3.12
2669+
typeset -h words
26622670
fi
26632671

26642672
local cur words cword prev

0 commit comments

Comments
 (0)