Skip to content

Commit

Permalink
Ensure that narrowing contains everything between the tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
pjones committed Nov 22, 2012
1 parent c3d02c5 commit 3e3ef44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lisp/bufshow.el
Expand Up @@ -157,11 +157,13 @@ directory. "
(let* ((start (save-excursion
(search-forward (concat "{BEGIN: " token "}"))
(forward-line)
(beginning-of-line)
(point)))
(end (save-excursion
(goto-char start)
(search-forward "{END}")
(forward-line -1)
(end-of-line)
(point))))
(narrow-to-region start end)))

Expand Down

0 comments on commit 3e3ef44

Please sign in to comment.