Merge branch 'fc/completion-zsh' into sg/completion-updates
* fc/completion-zsh: git-completion: fix regression in zsh support
This commit is contained in:
commit
2df7683b6e
@ -2608,6 +2608,10 @@ _git ()
|
||||
if [[ -n ${ZSH_VERSION-} ]]; then
|
||||
emulate -L bash
|
||||
setopt KSH_TYPESET
|
||||
|
||||
# workaround zsh's bug that leaves 'words' as a special
|
||||
# variable in versions < 4.3.12
|
||||
typeset -h words
|
||||
fi
|
||||
|
||||
local cur words cword prev
|
||||
@ -2659,6 +2663,10 @@ _gitk ()
|
||||
if [[ -n ${ZSH_VERSION-} ]]; then
|
||||
emulate -L bash
|
||||
setopt KSH_TYPESET
|
||||
|
||||
# workaround zsh's bug that leaves 'words' as a special
|
||||
# variable in versions < 4.3.12
|
||||
typeset -h words
|
||||
fi
|
||||
|
||||
local cur words cword prev
|
||||
|
Loading…
Reference in New Issue
Block a user