diff --git a/clients/lsp-bash.el b/clients/lsp-bash.el index 571c90fb63..35128401f8 100644 --- a/clients/lsp-bash.el +++ b/clients/lsp-bash.el @@ -74,7 +74,7 @@ See instructions at https://marketplace.visualstudio.com/items?itemName=mads-har "Check whether `sh-shell' is supported. This prevents the Bash server from being turned on for unsupported dialects, e.g. `zsh`." - (and (boundp 'sh-shell) + (and (local-variable-p 'sh-shell) (memq sh-shell lsp-bash-allowed-shells))) (lsp-register-client