Skip to content

ViReplaceEndOfWord does not property handle word delimiters at end of line #5128

Description

@reaching-for-libra

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

PS Version: 7.6.0
PS HostName: ConsoleHost (Windows Terminal)
PSReadLine Version: 2.4.5
PSReadLine EditMode: Vi
OS: 10.0.26100.1 (WinBuild.160101.0800)
BufferWidth: 200
BufferHeight: 50

Steps to reproduce

Type some text that ends with a word delimiter. In VI mode, with the cursor anywhere before that ending word delimiter, type <c, e>. For example:

'sometext'

Expected behavior

The cursor should end up landing just before the delimiter

Actual behavior

The cursor lands after the delimiter, at the end of the line.

If you were to repeat the test, but place a space (or any character, really) at the end of the line, after the delimiter, then the cursor will correctly land before the delimiter

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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