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

Inconsistent cursor position after paste depending on selection mode #1173

Open
simias opened this issue Jul 23, 2019 · 0 comments · May be fixed by #1174
Open

Inconsistent cursor position after paste depending on selection mode #1173

simias opened this issue Jul 23, 2019 · 0 comments · May be fixed by #1174

Comments

@simias
Copy link

simias commented Jul 23, 2019

Issue type

  • Bug report

Environment

Emacs version: 26.2
Operating System: Arch Linux
Evil version: evil-git-297b8f3
Evil installation type: manual (git checkout)
Graphical/Terminal: X11
Tested in a make emacs session (see CONTRIBUTING.md): Yes

Reproduction steps

  • Start Emacs
  • Open any multi-line file
  • Start a (character-wise) visual selection, select a few lines and yank them: vjjjy
  • Paste the selection with p

Expected behavior

In vim the cursor remains before the pasted section.

Actual behavior

With evil the cursor is moved after the pasted section.

Further notes

Doing the same selection line-wise (with Vjjjyp) does not move the cursor after the pasted section. Therefore with evil the behavior appears to be inconsistent depending on the type of selection made.

In vim the cursor always remains before the pasted section regardless of how the selection was made (you have to use gp to move the cursor after paste, but this doesn't appear to exist in evil).

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

Successfully merging a pull request may close this issue.

1 participant