Skip to content

Vi mode: r moves cursor forward but shouldn't #1026

@LordMZTE

Description

@LordMZTE

Platform NixOS
Terminal software foot
Tested in Nushell 0.110.0

Describe the problem you are observing.

Steps to reproduce

  1. Suppose we have this input and are in VI normal mode, where the caret is the position of the cursor:
AAAAA
  ^
  1. Execute the command rX to replace the char under the cursor with X.
  2. New state:
AAXAA
   ^

Expected Behavior

The cursor stays in place as it does in Vim.

Actual Behavior

The cursor moves forward one character.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions