Explorar o código

org.el (org-insert-heading): Don't insert an item when called with two universal prefix arguments

* org.el (org-insert-heading): Don't insert an item when
called with two universal prefix arguments.
Bastien Guerry %!s(int64=11) %!d(string=hai) anos
pai
achega
d8034c3b19
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -7608,7 +7608,7 @@ command."
        (if (org-in-src-block-p) ",* " "* "))
       (run-hooks 'org-insert-heading-hook))
 
-     ((and itemp (not (equal arg '(4))))
+     ((and itemp (not (member arg '((4) (16)))))
       ;; Insert an item
       (org-insert-item))