PSReadLine icon indicating copy to clipboard operation
PSReadLine copied to clipboard

BackwardKillWord will delete two word

Open mrbeardad opened this issue 1 year ago • 0 comments

Prerequisites

  • [X] Write a descriptive title.
  • [X] Make sure you are able to repro it on the latest released version
  • [X] 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 --

mrbeardad avatar Nov 16 '24 01:11 mrbeardad