Improve invisible point detection

master
Jacopo De Simoi 3 years ago
parent 17d25a2e25
commit f5999517e2
  1. 3
      global.org

@ -1032,7 +1032,8 @@
#+begin_src emacs-lisp
(defun org-smart-line-beginning ()
(interactive)
(when (invisible-p (point))
(when (or (invisible-p (point))
(invisible-p (- (point) 1)))
;; assume that we are in a folded headline; move back to heading
;; otherwise we will be trapped in the invisible region
(org-back-to-heading))

Loading…
Cancel
Save