Skip to content

ctrl+h cannot work as same as backspace in MenuComplete #4170

Open
@Xdminsy

Description

@Xdminsy

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

image

Environment data

PS Version: 7.4.5
PS HostName: ConsoleHost (Windows Terminal)
PSReadLine Version: 2.3.5
PSReadLine EditMode: Emacs
OS: 10.0.19041.1 (WinBuild.160101.0800)
BufferWidth: 120
BufferHeight: 9001

Steps to reproduce

Run pwsh -noprofile for pure powershell start
Run Set-PSReadLineOption -BellStyle None -EditMode Emacs to bind emacs hotkeys, and ctrl+h can delete a character backward now.
Input ls - then press ctrl+space for MenuComplete, The Path is first completion so get highlighted
Press L and the LiteralPath is the possible completion, while the iteralPath is highlighted
Press ctrl+h

Expected behavior

Should be same as pressing backspace.
The actual command should be ls - and following a highlit Path

Actual behavior

The actual command becomes ls -iteralPath.
While the cursor is at character i.
It accepts the completion then delete a character backward.

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