revert: refactor(evil): remove +evil--dont-move-cursor-a

Turns out that the behavior this advice fixes was not fully addressed,
so I'm restoring it.

Revert: 4def7f359c
This commit is contained in:
Henrik Lissner
2025-03-31 17:21:57 -04:00
parent d775ed822c
commit 8b37baada7

View File

@ -143,6 +143,12 @@ directives. By default, this only recognizes C directives.")
(count-lines (point-min) (point-max)) (count-lines (point-min) (point-max))
(buffer-size))))) (buffer-size)))))
;; HACK: '=' moves the cursor to the beginning of selection. Disable this,
;; since it's more disruptive than helpful.
(defadvice! +evil--dont-move-cursor-a (fn &rest args)
:around #'evil-indent
(save-excursion (apply fn args)))
;; HACK: In vim, registers 2-9 are global. In Evil, they're buffer-local. so ;; HACK: In vim, registers 2-9 are global. In Evil, they're buffer-local. so
;; I enforce vim's way. ;; I enforce vim's way.
;; REVIEW: PR this upstream? ;; REVIEW: PR this upstream?