]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/treesit.el (treesit-inspect-node-at-point): Minor fix.
authorYuan Fu <casouri@gmail.com>
Fri, 4 Nov 2022 17:50:55 +0000 (10:50 -0700)
committerYuan Fu <casouri@gmail.com>
Fri, 4 Nov 2022 17:50:55 +0000 (10:50 -0700)
lisp/treesit.el

index 3a1e010166d9d1e15e49177a999c1fd97f96551f..64a93aa670ac62047869029a3abd943431f1d8c7 100644 (file)
@@ -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)