Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong location for substitution on fake cursors when evil-move-cursor-back is nil #129

Open
josephmturner opened this issue Jan 30, 2022 · 0 comments

Comments

@josephmturner
Copy link

Running emacs 27.2 with just this config:

(require 'evil)
(evil-mode 1)
(setq evil-move-cursor-back nil) ;; Entering and leaving insert mode is idempotent
(require 'evil-mc)
(global-evil-mc-mode 1)

Given a buffer with the following text:

a b c
a b c
a b c

Place your cursor on b in the first line then run evil-mc-make-and-goto-next-match twice (C-n C-n). You should now have a fake cursor on the first two bs, and the real cursor on the third.
Run evil-substitute (s).
Expected result:

a  c
a  c
a  c

Actual result:

a bc
a bc
a  c

In both cases, you should be in insert state as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant