Skip to content

Toggling acts globally, but :match is local to windows #22

@blueyed

Description

@blueyed

:DisableWhitespace leaves the matches in other windows around, from :echo getmatches():

{'group': 'ExtraWhitespace', 'pattern': '\s\+$', 'priority': 10, 'id': 1}

TEST CASE:

  1. vim -c 'EnableWhitespace' -c 'norm ifoo ' -c 'new' -c 'DisableWhitespace'

After this, the trailing space in the first window is still highlighted.

This is related to issue #3 (local settings per buffer/window).

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