Skip to content

BackwardKillWord will delete two wordΒ #4275

@mrbeardad

Description

@mrbeardad

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.

Exception report

N/A

Screenshot

N/A

Environment data

Set-PSReadLineKeyHandler -ViMode Insert -Key Ctrl+w -Function BackwardKillWord

Steps to reproduce

  1. type test --
  2. press ctrl-w
  3. test -- are both deleted

Expected behavior

Only delete the -- or -- but keep test which is before <space>

Actual behavior

ctrl-w will delete the both two word test and --

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs-Triage πŸ”It's a new issue that core contributor team needs to triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions