Skip to content

Negative line indices in set_lines #257

@GordianDziwis

Description

@GordianDziwis

From the nvim_buf_set_lines docs:

    Indexing is zero-based, end-exclusive. Negative indices are interpreted as
    length+1+index: -1 refers to the index past the end. So to change or
    delete the last line use start=-2 and end=-1.

But the range in nvim-oxi is usize, so the negative indexing is not possible.

Is this intended?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions