Use zle redraw hook if available (>= 5.4)

This commit is contained in:
Eric Freese
2019-01-11 19:02:55 -07:00
parent de4256a63b
commit 161de32912
8 changed files with 249 additions and 141 deletions

View File

@@ -73,6 +73,7 @@ typeset -g ZSH_AUTOSUGGEST_ORIGINAL_WIDGET_PREFIX=autosuggest-orig-
}
# Widgets that should be ignored (globbing supported but must be escaped)
# Only relevant for zsh versions older than 5.4
(( ! ${+ZSH_AUTOSUGGEST_IGNORE_WIDGETS} )) && {
typeset -ga ZSH_AUTOSUGGEST_IGNORE_WIDGETS
ZSH_AUTOSUGGEST_IGNORE_WIDGETS=(