Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

[vim keymap] Selection restored on undo #1038

Closed
mightyguava opened this Issue · 1 comment

2 participants

@mightyguava
Owner

If I delete some text in visual mode with like vjd, and then undo with u, the selection is restored after the undo. I think it might be due to the selection revamp in v3, since it does not occur on master.

I think may be expected behavior since it makes sense that if you select a chunk of text and delete it, undo restores the text and the selection. Just checking here, and making it a todo for myself to reset the cursor after undo in vim.js.

@marijnh
Owner

See the discussion in #923 . This is indeed new in v3, and I'm not 100% certain that it makes sense, but it is more consistent than the vague heuristic I used before.

@marijnh marijnh closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.