瀏覽代碼

Merge branch 'maint' into master

Kyle Meyer 4 年之前
父節點
當前提交
0d314a0473
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lisp/org.el

+ 2 - 1
lisp/org.el

@@ -6474,7 +6474,8 @@ Use `\\[org-edit-special]' to edit table.el tables"))
 	(goto-char eos)
 	(goto-char eos)
 	(outline-next-heading)
 	(outline-next-heading)
 	(when (org-invisible-p) (org-flag-heading nil))))
 	(when (org-invisible-p) (org-flag-heading nil))))
-     ((and (>= eol eos)
+     ((and (or (>= eol eos)
+	       (not (string-match "\\S-" (buffer-substring eol eos))))
 	   (or has-children
 	   (or has-children
 	       (not (setq children-skipped
 	       (not (setq children-skipped
 			  org-cycle-skip-children-state-if-no-children))))
 			  org-cycle-skip-children-state-if-no-children))))