Skip to content

Pad the line/column numbers to prevent glitching. #27

@oxcrow

Description

@oxcrow

Hello,

Your plugin is pretty minimalist, clean, and nice.

As we scroll up and down, the line/column number changes, and shifts the entire line around. Specifically the column number causes it to shift a lot, since it goes from 0 to 90 (or above).

It's not a bug or an issue but if you wanted to you could pad enough space for the column number for at least 3 digits, so that it doesn't shift so often.

You can leave the line number be as it is, because we won't know how large files can be, so it's best if the line number can be redrawn as required.

However for the column number we can assume that max 3 digits will be used so we can pre-emptively pad for it.

Thanks.

Image

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