Merge pull request #31 from maksimr/patch-1
fix:Add autosuggest to highlighters list only once
This commit is contained in:
commit
7446059f63
|
@ -100,8 +100,10 @@ autosuggest-resume() {
|
||||||
|
|
||||||
autosuggest-start() {
|
autosuggest-start() {
|
||||||
if [[ -z $ZLE_DISABLE_AUTOSUGGEST && -n $functions[_zsh_highlight] ]]; then
|
if [[ -z $ZLE_DISABLE_AUTOSUGGEST && -n $functions[_zsh_highlight] ]]; then
|
||||||
|
if [[ ${ZSH_HIGHLIGHT_HIGHLIGHTERS[(i)autosuggest]} -gt ${#ZSH_HIGHLIGHT_HIGHLIGHTERS} ]];then
|
||||||
ZSH_HIGHLIGHT_HIGHLIGHTERS+=(autosuggest)
|
ZSH_HIGHLIGHT_HIGHLIGHTERS+=(autosuggest)
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
autosuggest-resume
|
autosuggest-resume
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue