Skip to content

commandline --selection-anchor to get/set selection start position #9197

@sshilovsky

Description

@sshilovsky

For example, with the buffer abcdef and selection bcd, with cursor on the right end:

commandline --selection-anchor should output 1;
commandline --selection-anchor 2 should switch selection to cd,
commandline --selection-anchor 3 --cursor 2 should select cd, but also swap the beginning and end of selection to backwards.

UPD fixed: --selection-anchor 3 in the last line example

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

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions