Skip to content

Commit c818af4

Browse files
authored
Fix mouse-3 error when dap is not present (#2354)
Previously, the menu filter function assumes that dap is loaded in its filter function.
1 parent 0b8d830 commit c818af4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lsp-mode.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2676,7 +2676,9 @@ and end-of-string meta-characters."
26762676
"---"
26772677
("Debug"
26782678
:active (bound-and-true-p dap-ui-mode)
2679-
:filter ,(lambda (_) (nthcdr 3 dap-ui-menu-items)))))
2679+
:filter ,(lambda (_)
2680+
(and (boundp 'dap-ui-menu-items)
2681+
(nthcdr 3 dap-ui-menu-items))))))
26802682
"Menu for lsp-mode.")
26812683

26822684
(defalias 'make-lsp-client 'make-lsp--client)

0 commit comments

Comments
 (0)