diff --git a/src/strategies/predefined.zsh b/src/strategies/predefined.zsh index 534781c..1d4839a 100644 --- a/src/strategies/predefined.zsh +++ b/src/strategies/predefined.zsh @@ -74,8 +74,8 @@ _zsh_autosuggest_strategy_predefined() { pname="${ZSH_AUTOSUGGEST_PREDEFINE_NAME:-$pname}" local names="${ZSH_AUTOSUGGEST_PREDEFINE_PATH};$pname" local array=() - for i ("${(@s/;/)names}"); do - if [ -n "$i" ] && [ -f "$i" ]; then + for i ("${(s:;:)names}"); do + if [[ -n "$i" ]] && [[ -f "$i" ]]; then local temp=(${(f)"$(<$i)"}) array+=($temp) fi diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index b28d6dd..e4b1c01 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -640,8 +640,8 @@ _zsh_autosuggest_strategy_predefined() { pname="${ZSH_AUTOSUGGEST_PREDEFINE_NAME:-$pname}" local names="${ZSH_AUTOSUGGEST_PREDEFINE_PATH};$pname" local array=() - for i ("${(@s/;/)names}"); do - if [ -n "$i" ] && [ -f "$i" ]; then + for i ("${(s:;:)names}"); do + if [[ -n "$i" ]] && [[ -f "$i" ]]; then local temp=(${(f)"$(<$i)"}) array+=($temp) fi