Skip to content

Commit

Permalink
Ignore ignorable lines when selecting elements
Browse files Browse the repository at this point in the history
This fixes #29.
  • Loading branch information
joranvar committed Aug 17, 2016
1 parent 03b0130 commit 2dfa925
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yafolding.el
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@
(goto-char (point-min))
(while (< (line-number-at-pos)
(line-number-at-pos (point-max)))
(if (= (yafolding-get-indent-level) indent-level)
(if (and (= (yafolding-get-indent-level) indent-level)
(not (yafolding-should-ignore-current-line-p)))
(yafolding-hide-element))
(forward-line 1))))

Expand Down

0 comments on commit 2dfa925

Please sign in to comment.