Skip to content

Wrong marker highlight for tabs and emojis #2534

@trygveaa

Description

@trygveaa

The marker feature treats tabs as one character wide, so if the terminal text contains tabs, the highlight will be offset from the matched text. Can be reproduced by creating the marker text 1 test and running echo -e '\ttest', which will look like this:

image

Or if you match a tab, only one character will be highlighted. Can be reproduced by creating a marker that matches \t and running echo -e '\ttest', which will look like this:

image

Another issue is that if you match an emoji that is two characters wide, only the left of the characters will be highlighted. Can be reproduced by creating the marker text 1 😂 and running echo '😂test', which will look like this:

image

And if you match a character printed directly after an emoji, the highlight will include the right character in the emoji. Can be reproduced by creating the marker text 1 t and running echo '😂test', which will look like this:

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