From f82be0af42c7326482106077b852de9481b9f577 Mon Sep 17 00:00:00 2001 From: Lars Tveito Date: Mon, 24 Feb 2020 21:40:27 +0100 Subject: [PATCH] Check nils --- focus.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/focus.el b/focus.el index a4774a3..694131d 100644 --- a/focus.el +++ b/focus.el @@ -156,7 +156,7 @@ The timer calls `focus-read-only-hide-cursor' after (let* ((elem (org-element-at-point)) (beg (org-element-property :begin elem)) (end (org-element-property :end elem))) - (cons beg end))) + (and beg end (cons beg end)))) (t (bounds-of-thing-at-point thing))))) (defun focus-make-focused-face (fg)