[vim keymap] Selection restored on undo #1038
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If I delete some text in visual mode with like
vjd, and then undo withu, 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.
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.
mentioned in merge request !8420