branch: externals/beardbolt
commit e40333135067e8e18febc2af11d28715480958e3
Author: João Távora <[email protected]>
Commit: João Távora <[email protected]>

    * beardbolt.el (bb--synch-relation-overlays): Fix bug.
---
 beardbolt.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/beardbolt.el b/beardbolt.el
index 675ec33597..1c34b1d9c6 100644
--- a/beardbolt.el
+++ b/beardbolt.el
@@ -696,7 +696,8 @@ With prefix argument, choose from starter files in 
`bb-starter-files'."
   (let* ((at-point (overlays-at (point)))
          (all-ovs (if (eq major-mode 'bb--asm-mode)
                       bb--rainbow-overlays
-                    (buffer-local-value 'bb--rainbow-overlays bb--asm-buffer)))
+                    (and bb--asm-buffer
+                         (buffer-local-value 'bb--rainbow-overlays 
bb--asm-buffer))))
          (ov (cl-find-if (lambda (ov) (overlay-get ov 'beardbolt-rainbow-face))
                          at-point)))
     (cond ((and ov (not (member ov bb--currently-synched-overlays)))

Reply via email to