Skip to content

Commit 2e3606e

Browse files
committed
Minor adjustments over #33
1 parent 3436153 commit 2e3606e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lsp-treemacs.el

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,8 +1159,7 @@
11591159
(setq-local face-remapping-alist '((button . default)))
11601160
(lsp-treemacs--set-mode-line-format search-buffer title)
11611161
(lsp-treemacs-generic-refresh)
1162-
(when (equal expand? '(4))
1163-
(lsp-treemacs--expand 'LSP-Generic))
1162+
(when expand? (lsp-treemacs--expand 'LSP-Generic))
11641163
(current-buffer))))
11651164

11661165
(defalias 'lsp-treemacs--show-references 'lsp-treemacs-render)
@@ -1192,12 +1191,12 @@ depending on if a custom mode line is detected."
11921191
(let ((lsp-file-truename-cache (ht)))
11931192
(lsp-treemacs-render (lsp-treemacs--handle-references refs)
11941193
(format title (length refs))
1195-
prefix-args)))
1194+
(and prefix-args (not (equal prefix-args 0))))))
11961195
(lsp--info "Refresh completed!"))
11971196
:mode 'detached
11981197
:cancel-token :treemacs-lookup)
11991198

1200-
(unless (zerop prefix-args)
1199+
(unless (equal prefix-args 0)
12011200
(select-window window)
12021201
(set-window-dedicated-p window t))
12031202

0 commit comments

Comments
 (0)