]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix treesit-query-validate problem with view-mode
authorTheodor Thornhill <theo@thornhill.no>
Sat, 17 Dec 2022 19:23:02 +0000 (20:23 +0100)
committerYuan Fu <casouri@gmail.com>
Sat, 17 Dec 2022 23:33:55 +0000 (15:33 -0800)
* lisp/treesit.el (treesit-query-validate): Move the (view-mode) into
the correct scope.

lisp/treesit.el

index 068c443dc2673e77f52188e90c7aeb26460d9333..16e1a16dbf40c30842f895692afd8ff87b3839f2 100644 (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