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