mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
+org/insert-item: fix not jumping over sublists
Initial: + List item 1| <-- M-RET + Sublist Post-fix: + List item 1 + Sublist + | Pre-fix: + List item 1 + | + Sublist
This commit is contained in:
@ -185,8 +185,10 @@ wrong places)."
|
|||||||
(- (point) (line-beginning-position)))))
|
(- (point) (line-beginning-position)))))
|
||||||
(pcase direction
|
(pcase direction
|
||||||
('below
|
('below
|
||||||
(goto-char (line-end-position))
|
(org-end-of-item)
|
||||||
(insert (concat "\n" (make-string pad ? ) marker)))
|
(goto-char (line-beginning-position))
|
||||||
|
(insert (make-string pad 32) (or marker ""))
|
||||||
|
(save-excursion (insert "\n")))
|
||||||
('above
|
('above
|
||||||
(goto-char (line-beginning-position))
|
(goto-char (line-beginning-position))
|
||||||
(insert (make-string pad 32) (or marker ""))
|
(insert (make-string pad 32) (or marker ""))
|
||||||
|
Reference in New Issue
Block a user