Skip to content

Commit e9230e8

Browse files
lsp-bash: only take into account buffer-local sh-shell (#4675)
1 parent f3bd38d commit e9230e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clients/lsp-bash.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ See instructions at https://marketplace.visualstudio.com/items?itemName=mads-har
7474
"Check whether `sh-shell' is supported.
7575
7676
This prevents the Bash server from being turned on for unsupported dialects, e.g. `zsh`."
77-
(and (boundp 'sh-shell)
77+
(and (local-variable-p 'sh-shell)
7878
(memq sh-shell lsp-bash-allowed-shells)))
7979

8080
(lsp-register-client

0 commit comments

Comments
 (0)