VSCodeVim / VSCodeVim/Vim

`dd` in multicursor mode isn't handled correctly

Open
#1,641 1 comment 3 reactions 1 assignee View on GitHub

@J-Fields is already working on this.

Since Apr 14, 2021.

area/multicursor kind/enhancement
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

  • Click thumbs-up 👍 on this issue if you want it!
  • Click confused 😕 on this issue if not having it makes VSCodeVim unusable.

The VSCodeVim team prioritizes issues based on reaction count.


Is this a BUG REPORT or FEATURE REQUEST? (choose one):

Environment:

  • VSCode Version: 0.6.20
  • VsCodeVim Version: 1.11
  • OS: Arch

What happened:

On a file like this (with no newline)

foobar
foobar
foobar
foobar
foobar

put a cursor at the end of every line (I used ctrl+alt+down). Then, press dd.

Half of the lines were deleted, with the cursors in wonky positions.
What did you expect to happen:
All lines were deleted.

For whatever reason, it works fine if there's a newline at the end of the file.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.