VSCodeVim / VSCodeVim/Vim

paste race condition

Open
#3,117 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug
holding 'p' pastes things into the wrong places (i.e. skips lines sometimes instead of pasting all the lines consecutively)

To Reproduce
Steps to reproduce the behavior:

  1. open a file you don't much care about :P
  2. at one of the first few lines of the file, write a loud comment like a fixme or something you wanna repeat so you don't forget to do it before committing :P
  3. hit escape to go to normal mode but keep your cursor to that line
  4. do a yy
  5. hold "p" for a few seconds
  6. See the pasted lines end up interwoven within the original file like a beautiful quilt

Expected behavior
The line pastes are consecutive

Screenshots

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 0.16.9
  • VSCode version: 1.27.2
  • OS: Linux - on kubuntu bionic

Additional context
I'm pretty sure this is a new bug post-0.16.6, because I'm sure I would have noticed it before - holding p like a maniac is something I do routinely.

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.

Research direction

The issue names no source files, tests, or entry points. Reproduce it by yanking a line in normal mode and holding p in VSCodeVim 0.16.9, then inspect the paste behavior; done means repeated pastes remain consecutive rather than becoming interwoven.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.