Prechádzať zdrojové kódy

Revert "org.el: Allow empty subtrees to be folded back"

* lisp/org.el (org-cycle-internal-local): Revert
ee3c3b554799c9f0fbe387848cd9eec7e9ab9d95, which does not appear to
have addressed the original issue and breaks cycling with empty lines.

Reported-by: B Goodr <bgoodr@gmail.com>
Ref: https://orgmode.org/list/CAJj=8EFJXFu9ZQ11cO24AAu=1jykW2Zr+=R4FLuKG=bLjfUe+g@mail.gmail.com
Reported-by: Mikhail Skorzhisnkii <mskorzhinskiy@eml.cc>
Ref: https://orgmode.org/list/87h7qu10ht.fsf@eml.cc
Kyle Meyer 4 rokov pred
rodič
commit
e8070d71ab
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      lisp/org.el

+ 2 - 1
lisp/org.el

@@ -6464,7 +6464,8 @@ Use `\\[org-edit-special]' to edit table.el tables"))
 	(goto-char eos)
 	(outline-next-heading)
 	(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
 	       (not (setq children-skipped
 			  org-cycle-skip-children-state-if-no-children))))