Reset opts in some functions affected by GLOB_SUBST
Should fix GitHub #334
This commit is contained in:
@@ -37,6 +37,8 @@ _zsh_autosuggest_clear() {
|
||||
|
||||
# Modify the buffer and get a new suggestion
|
||||
_zsh_autosuggest_modify() {
|
||||
emulate -L zsh
|
||||
|
||||
local -i retval
|
||||
|
||||
# Only available in zsh >= 5.4
|
||||
@@ -104,6 +106,8 @@ _zsh_autosuggest_fetch() {
|
||||
|
||||
# Offer a suggestion
|
||||
_zsh_autosuggest_suggest() {
|
||||
emulate -L zsh
|
||||
|
||||
local suggestion="$1"
|
||||
|
||||
if [[ -n "$suggestion" ]] && (( $#BUFFER )); then
|
||||
|
||||
Reference in New Issue
Block a user