mirror of
https://github.com/larstvei/Focus.git
synced 2024-11-26 11:38:32 +00:00
Check nils
This commit is contained in:
parent
4087bf62e6
commit
f82be0af42
2
focus.el
2
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)
|
||||
|
Loading…
Reference in New Issue
Block a user