Skip to content

Commit

Permalink
fix: Revert line comment mode capability
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Jul 25, 2024
1 parent f6fc276 commit 55f80a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ts-fold.el
Original file line number Diff line number Diff line change
Expand Up @@ -536,13 +536,13 @@ then return the last iterated node.
Argument NEXT is a boolean type. If non-nil iterate forward; otherwise iterate
in backward direction."
(let* ((iter-node node) (last-node node)
(last-line (car (tsc-node-start-position node))) line text break
(last-line (car (tsc-node-start-point node))) line text break
(line-range 1) (last-line-range 1) max-line-range
(indentation (ts-fold--indentation (tsc-node-start-position iter-node)))
next-indentation)
(while (and iter-node (not break))
(setq text (string-trim (tsc-node-text iter-node))
line (car (tsc-node-start-position iter-node))
line (car (tsc-node-start-point iter-node))
line-range (1+ (ts-fold--count-matches "\n" text))
max-line-range (max line-range last-line-range)
next-indentation (ts-fold--indentation (tsc-node-start-position iter-node)))
Expand Down

0 comments on commit 55f80a2

Please sign in to comment.