mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-07 12:47:30 -05:00
Fix +org/insert-item when point is in a link
This commit is contained in:
@ -202,12 +202,9 @@ wrong places)."
|
|||||||
('above (+org/table-prepend-row-or-shift-up))))
|
('above (+org/table-prepend-row-or-shift-up))))
|
||||||
|
|
||||||
((memq type '(headline inlinetask))
|
((memq type '(headline inlinetask))
|
||||||
(let* ((subcontext (org-element-context))
|
(let ((level (if (eq (org-element-type context) 'headline)
|
||||||
(level (save-excursion
|
(org-element-property :level context)
|
||||||
(org-back-to-heading)
|
1)))
|
||||||
(if (eq (org-element-type subcontext) 'headline)
|
|
||||||
(org-element-property :level subcontext)
|
|
||||||
1))))
|
|
||||||
(pcase direction
|
(pcase direction
|
||||||
('below
|
('below
|
||||||
(let ((at-eol (= (point) (1- (line-end-position)))))
|
(let ((at-eol (= (point) (1- (line-end-position)))))
|
||||||
|
Reference in New Issue
Block a user