mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-01-30 09:47:12 +08:00
Fix plugin for shells with ksh_arrays
set
This commit is contained in:
parent
9e8e2427e0
commit
c0d0ec1308
@ -8,7 +8,7 @@ _zsh_autosuggest_highlight_reset() {
|
||||
typeset -g _ZSH_AUTOSUGGEST_LAST_HIGHLIGHT
|
||||
|
||||
if [[ -n "$_ZSH_AUTOSUGGEST_LAST_HIGHLIGHT" ]]; then
|
||||
region_highlight=("${(@)region_highlight:#$_ZSH_AUTOSUGGEST_LAST_HIGHLIGHT}")
|
||||
region_highlight=("${region_highlight[@]:#$_ZSH_AUTOSUGGEST_LAST_HIGHLIGHT}")
|
||||
unset _ZSH_AUTOSUGGEST_LAST_HIGHLIGHT
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user