Skip to content

Commit

Permalink
show blank lines at the end of block
Browse files Browse the repository at this point in the history
  • Loading branch information
zenozeng committed Jul 2, 2014
1 parent dd0322d commit aa47fdc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions yafolding.el
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

;; Author: Zeno Zeng <[email protected]>
;; keywords:
;; Time-stamp: <2014-07-02 16:53:44 Zeno Zeng>
;; Time-stamp: <2014-07-02 16:57:28 Zeno Zeng>
;; Version: 0.1.3


Expand Down Expand Up @@ -117,7 +117,8 @@
(while (and (< (line-number-at-pos) (line-number-at-pos (point-max)))
(or (> (current-indentation) indentation)
(yafolding-should-ignore-current-line-p)))
(setq end (line-end-position))
(unless (yafolding-should-ignore-current-line-p)
(setq end (line-end-position)))
(forward-line 1)))
(list beg end)))

Expand Down

0 comments on commit aa47fdc

Please sign in to comment.