From 2aecead4f04f373cfe5c19efbccd4e23346a9b3c Mon Sep 17 00:00:00 2001 From: Conor Hopkins Date: Fri, 30 Nov 2018 10:31:11 +0000 Subject: [PATCH] check for deprecated 'default' value --- zsh-autosuggestions.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index d8f0151..eedce55 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -49,7 +49,9 @@ zmodload zsh/zpty # Strategies to use to fetch a suggestion # Will try each strategy in order until a suggestion is returned -(( ! ${+ZSH_AUTOSUGGEST_STRATEGY} )) && ZSH_AUTOSUGGEST_STRATEGY=(history) +if (( ! ${+ZSH_AUTOSUGGEST_STRATEGY} )) || [ "$ZSH_AUTOSUGGEST_STRATEGY" = "default" ];then + ZSH_AUTOSUGGEST_STRATEGY=(history) +fi # Widgets that clear the suggestion (( ! ${+ZSH_AUTOSUGGEST_CLEAR_WIDGETS} )) && ZSH_AUTOSUGGEST_CLEAR_WIDGETS=(