>From 2def0fca50e8a174bcdacf81ca93a2bd4eb42a23 Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Sat, 17 Dec 2022 20:23:02 +0100 Subject: [PATCH] Add view-mode to the treesit-query-validate buffer * lisp/treesit.el (treesit-query-validate): Move the (view-mode) into the correct scope. --- lisp/treesit.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/treesit.el b/lisp/treesit.el index 068c443dc2..16e1a16dbf 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -2037,8 +2037,8 @@ treesit-query-validate (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 -- 2.34.1