From f2e801f729c059ae8f3c7c8bbdf050784d4ede77 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 17 Sep 2024 11:50:54 -0400 Subject: [PATCH] correctly clean up post command hooks --- lsp-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lsp-mode.el b/lsp-mode.el index 7c9c824eb4..ca3d964479 100644 --- a/lsp-mode.el +++ b/lsp-mode.el @@ -4120,7 +4120,8 @@ yet." (cond ((and (or (equal lsp-signature-auto-activate t) (memq :on-trigger-char lsp-signature-auto-activate)) - signature-help-handler) + signature-help-handler + (not cleanup?)) (add-hook 'post-self-insert-hook signature-help-handler nil t)) ((or cleanup?