Skip to content

Commit

Permalink
Merge pull request #259 from jcs-PR/fix/debug-display
Browse files Browse the repository at this point in the history
fix: Make button without newline
  • Loading branch information
jcs090218 authored Sep 9, 2023
2 parents 88c41a0 + a2e1f78 commit cbfdf13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lisp/tree-sitter-debug.el
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,14 @@ This only takes effect if `tree-sitter-debug-jump-buttons' is non-nil."
"Display NODE that appears at the given DEPTH in the syntax tree."
(when named-p
(insert (make-string (* 2 depth) ?\ ))
(let ((node-text (format "%s:\n" type)))
(let ((node-text (format "%s:" type)))
(if tree-sitter-debug-jump-buttons
(insert-button node-text
'action 'tree-sitter-debug--button-node-lookup
'follow-link t
'points-to `(,start-byte . ,end-byte))
(insert node-text)))))
(insert node-text))
(insert "\n"))))

(defvar tree-sitter-debug-traversal-method :mapc)

Expand Down

0 comments on commit cbfdf13

Please sign in to comment.