Skip to content

Selection includes character under cursor for normal mode (non vi) #7762

@magenta404

Description

@magenta404

I am using fish in emacs mode (non vi mode). And the selection is off by one.

0000

The above screenshot shows me selecting two characters "he", but also erroneously includes the following "l" character.

Version: 3.1.2
OS: MacOS 11.2.1
Terminal: xterm-256color

I fixed (or caused?) this issue in #3684, but it looks like it regressed with #6329. The real issue appears to be that emacs and vi are handled the same which has led to a back and forth on whether selection should be inclusive or exclusive of the cursor character.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions