Ihor Radchenko пре 3 година
родитељ
комит
de022ed654
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -6924,7 +6924,7 @@ frame is not changed."
       (setq beg (point)
 	    heading (org-get-heading 'no-tags))
       (org-end-of-subtree t t)
-      (when (org-at-heading-p) (backward-char 1))
+      (when (and (not (eobp)) (org-at-heading-p)) (backward-char 1))
       (setq end (point)))
     (when (and (buffer-live-p org-last-indirect-buffer)
 	       (not (eq org-indirect-buffer-display 'new-frame))