aserebryakov / filestyle

filestyle is a Vim plugin that highlights unwanted whitespace and characters.
http://www.vim.org/scripts/script.php?script_id=5065
Apache License 2.0
30 stars 5 forks source link

[BUG]: Plugin activates again after it was deactivated #20

Closed aserebryakov closed 9 years ago

aserebryakov commented 9 years ago

Scenario:

  1. Open a file
  2. :FileStyleDeactivate
  3. :help
  4. <C-w>w

    Expected:

No higlighting

Actual:

Highiggting is enabled

aserebryakov commented 9 years ago

BufNew event causes the FileStyleActivate() call for the open file.

It is decided to remove BufNew event handling and call FileStyleActivate() for FileType event instead.

aserebryakov commented 9 years ago

Resolved.