From: Yuan Fu Date: Fri, 4 Nov 2022 17:50:55 +0000 (-0700) Subject: ; * lisp/treesit.el (treesit-inspect-node-at-point): Minor fix. X-Git-Tag: emacs-29.0.90~1712 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=951dd2a4d98aafe88bf2c6c2f86901230e3f0cd2;p=emacs.git ; * lisp/treesit.el (treesit-inspect-node-at-point): Minor fix. --- diff --git a/lisp/treesit.el b/lisp/treesit.el index 3a1e010166d..64a93aa670a 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -1552,11 +1552,10 @@ in `treesit-parser-list'." (format " %s: " (treesit-node-field-name node)) " ") (if (treesit-node-check node 'named) "(" "\"") - (or (propertize (treesit-node-type node) - 'face - (if (treesit-node-eq node largest-node) - 'bold nil)) - "N/A") + (propertize (or (treesit-node-type node) "N/A") + 'face + (if (treesit-node-eq node largest-node) + 'bold nil)) name (if (treesit-node-check node 'named) ")" "\"")))) (setq treesit--inspect-name name)