Check nils

This commit is contained in:
Lars Tveito 2020-02-24 21:40:27 +01:00
parent 4087bf62e6
commit f82be0af42

View File

@ -156,7 +156,7 @@ The timer calls `focus-read-only-hide-cursor' after
(let* ((elem (org-element-at-point)) (let* ((elem (org-element-at-point))
(beg (org-element-property :begin elem)) (beg (org-element-property :begin elem))
(end (org-element-property :end elem))) (end (org-element-property :end elem)))
(cons beg end))) (and beg end (cons beg end))))
(t (bounds-of-thing-at-point thing))))) (t (bounds-of-thing-at-point thing)))))
(defun focus-make-focused-face (fg) (defun focus-make-focused-face (fg)