; Fix typo in treesit-explore-mode

* lisp/treesit.el (treesit-explore-mode): We added the hook to
kill-buffer-hook, so make sure to remove it from
kill-buffer-hook, not post-command-hook.
This commit is contained in:
Yuan Fu 2025-01-03 21:39:32 -08:00
parent 921f454f50
commit 55f43f5b22
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -3601,7 +3601,7 @@ window."
;; Turn off explore mode.
(remove-hook 'post-command-hook
#'treesit--explorer-post-command t)
(remove-hook 'post-command-hook
(remove-hook 'kill-buffer-hook
#'treesit--explorer-kill-explorer-buffer t)
(treesit--explorer-kill-explorer-buffer)))