+org/insert-item: fix one-too-many prepended newlines in 1st-level headers

This commit is contained in:
Henrik Lissner 2017-10-05 01:22:05 +02:00
parent 72505d4001
commit 29030b6663
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -224,7 +224,6 @@ wrong places)."
(org-back-to-heading) (org-back-to-heading)
(org-insert-heading) (org-insert-heading)
(when (= level 1) (when (= level 1)
(save-excursion (evil-open-above 1))
(save-excursion (insert "\n"))))) (save-excursion (insert "\n")))))
(when (org-element-property :todo-type context) (when (org-element-property :todo-type context)
(org-todo 'todo)))) (org-todo 'todo))))