From a5e559eb82611ed0d43efa4ba2c2d21261170832 Mon Sep 17 00:00:00 2001 From: Sebastien Chapuis Date: Fri, 27 Apr 2018 13:23:51 +0200 Subject: [PATCH] [lsp-ui-sideline] Ensure that we're in a visiting buffer #122 --- lsp-ui-sideline.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lsp-ui-sideline.el b/lsp-ui-sideline.el index e3011186..f4623fc4 100644 --- a/lsp-ui-sideline.el +++ b/lsp-ui-sideline.el @@ -368,7 +368,8 @@ CURRENT is non-nil when the point is on the symbol." It loops on the symbols of the current line and request information to the language server." (lsp-ui-sideline--delete-ov) - (when lsp--cur-workspace + (when (and lsp--cur-workspace + buffer-file-name) (let ((eol (line-end-position)) (eob (buffer-end 1)) (bol (line-beginning-position))