Skip to content

Commit d6fc677

Browse files
committed
Fix incorrect element selection
As described in Issue Somelauw#106. I still don't understand why `region-beginning` was used, but replacing it with `point` gives the exact same behavior, minus the brokenness when visual-mode has been previously activated somewhere outside the subtree at point.
1 parent a9706da commit d6fc677

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evil-org.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ If a prefix argument is given, links are opened in incognito mode."
602602
;;; text-objects
603603
(defun evil-org-select-an-element (element)
604604
"Select an org ELEMENT."
605-
(list (min (region-beginning) (org-element-property :begin element))
605+
(list (min (point) (org-element-property :begin element))
606606
(org-element-property :end element)))
607607

608608
(defun evil-org-select-inner-element (element)

0 commit comments

Comments
 (0)