1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

Fix treesit-query-validate problem with view-mode

* lisp/treesit.el (treesit-query-validate): Move the (view-mode) into
the correct scope.
This commit is contained in:
Theodor Thornhill 2022-12-17 20:23:02 +01:00 committed by Yuan Fu
parent 1fc7535546
commit 69f2c71135
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -2037,8 +2037,8 @@ to the offending pattern and highlight the pattern."
(goto-char (point-min))
(insert (format "%s: %d\n" message start))
(forward-char start)))
(pop-to-buffer buf)))))
(view-mode))
(pop-to-buffer buf)
(view-mode))))))
;;; Explorer