Skip to content

Commit

Permalink
Fix incorrect element selection
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
45mg committed Feb 20, 2024
1 parent b1f3097 commit a4a7f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evil-org.el
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ If a prefix argument is given, links are opened in incognito mode."
;;; text-objects
(defun evil-org-select-an-element (element)
"Select an org ELEMENT."
(list (min (region-beginning) (org-element-property :begin element))
(list (min (point) (org-element-property :begin element))
(org-element-property :end element)))

(defun evil-org-select-inner-element (element)
Expand Down

0 comments on commit a4a7f6b

Please sign in to comment.