Skip to content

Commit a4a7f6b

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 above the subtree at point.
1 parent b1f3097 commit a4a7f6b

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
@@ -499,7 +499,7 @@ If a prefix argument is given, links are opened in incognito mode."
499499
;;; text-objects
500500
(defun evil-org-select-an-element (element)
501501
"Select an org ELEMENT."
502-
(list (min (region-beginning) (org-element-property :begin element))
502+
(list (min (point) (org-element-property :begin element))
503503
(org-element-property :end element)))
504504

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

0 commit comments

Comments
 (0)