branch: master commit af70a9c70c82cc8f6de77c67fad9707cea95c521 Author: Artur Malabarba <bruce.connor...@gmail.com> Commit: Artur Malabarba <bruce.connor...@gmail.com>
Small fix for when buffer doesn't end in a newline --- beacon.el | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/beacon.el b/beacon.el index 3ae584d..c0bb43f 100644 --- a/beacon.el +++ b/beacon.el @@ -258,7 +258,8 @@ Only returns `beacon-size' elements." (let* ((default-bg (or (save-excursion (unless (eobp) (forward-line 1) - (unless (bobp) (forward-char -1))) + (unless (or (bobp) (not (bolp))) + (forward-char -1))) (background-color-at-point)) (face-background 'default))) (bg (color-values (if (string-match "\\`unspecified-" default-bg)