Skip to content

Off-by-one error for df, dt, dF, dT motions with vi key bindings #5770

@veryjos

Description

@veryjos

In vi, df and dF are inclusive (in that they delete the character the motion is targetting) and dt and dT are exclusive. Right now, in fish, all of these commands delete one character less than they do in vi.

To reproduce:

  1. enable fish_vi_key_bindings (fish_vi_key_bindings)
  2. write some text, attempt to use df, dF, dt, or dT and observe how it differs from vi
  • Reproduced with a fresh environment
  • fish --version: fish, version 3.0.2
  • uname -a: Linux josbox 4.20.15-1-MANJARO #1 SMP PREEMPT Sun Mar 10 08:50:44 UTC 2019 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intendedvi-mode

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions