emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 2f6ec69 3/9: Fix #38 - bob error introduced by previous co


From: Artur Malabarba
Subject: [elpa] master 2f6ec69 3/9: Fix #38 - bob error introduced by previous commit
Date: Sat, 16 Jan 2016 09:42:01 +0000

branch: master
commit 2f6ec690f2b0085f4429e6a61fd572757ca8aa78
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>

    Fix #38 - bob error introduced by previous commit
---
 beacon.el |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/beacon.el b/beacon.el
index c2b5f6b..76c0db0 100644
--- a/beacon.el
+++ b/beacon.el
@@ -256,8 +256,9 @@ Only returns `beacon-size' elements."
 (defun beacon--color-range ()
   "Return a list of background colors for the beacon."
   (let* ((default-bg (or (save-excursion
-                           (forward-line 1)
-                           (forward-char -1)
+                           (unless (eobp)
+                             (forward-line 1)
+                             (unless (bobp) (forward-char -1)))
                            (background-color-at-point))
                          (face-background 'default)))
          (bg (color-values (if (string-match "\\`unspecified-" default-bg)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]