Преглед на файлове

org.el (org-insert-heading): Fix insertion of items

* org.el (org-insert-heading): Fix insertion of items.
Bastien Guerry преди 12 години
родител
ревизия
d68744f401
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -7504,7 +7504,7 @@ This is important for non-interactive uses of the command."
      (if (org-in-src-block-p) ",* " "* "))
     (run-hooks 'org-insert-heading-hook))
    ((or arg
-	org-insert-heading-respect-content
+	(and (not (org-in-item-p)) org-insert-heading-respect-content)
 	(not (org-insert-item
 	      (save-excursion
 		(beginning-of-line)