diff --git a/lisp/bufshow.el b/lisp/bufshow.el index d2a8d50..b93cd17 100644 --- a/lisp/bufshow.el +++ b/lisp/bufshow.el @@ -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)))