diff --git a/global.org b/global.org index ce8cabf..7757801 100644 --- a/global.org +++ b/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))