diff options
| author | Axel Forsman <axelsfor@gmail.com> | 2023-01-04 14:27:11 +0100 |
|---|---|---|
| committer | Axel Forsman <axelsfor@gmail.com> | 2023-01-09 11:13:25 +0100 |
| commit | 67115c894f4be23bec843cacf0622500bb1b38e1 (patch) | |
| tree | 955459bef7e80641e25611eb8591041a9d66794d /evil-types.el | |
| parent | 1be2289b360bef05f306517732d9e462291abb6d (diff) | |
Error at boundaries with h/l even if point moved
This matches the behavior of Vim in how repeated macros are aborted.
Diffstat (limited to 'evil-types.el')
| -rw-r--r-- | evil-types.el | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/evil-types.el b/evil-types.el index 645d2cf..276cdbb 100644 --- a/evil-types.el +++ b/evil-types.el @@ -118,18 +118,14 @@ and will be removed in a future version." (evil-range (progn (goto-char beg) - (min (line-beginning-position) - (progn - ;; move to beginning of line as displayed - (evil-move-beginning-of-line) - (line-beginning-position)))) + ;; move to beginning of line as displayed + (evil-move-beginning-of-line) + (point)) (progn (goto-char end) - (max (line-beginning-position 2) - (progn - ;; move to end of line as displayed - (evil-move-end-of-line) - (line-beginning-position 2)))))) + ;; move to the end of line as displayed + (evil-move-end-of-line) + (line-beginning-position 2)))) :contract (lambda (beg end) (evil-range beg (max beg (1- end)))) :string (lambda (beg end) |
