diff --git a/plugin/better-whitespace.vim b/plugin/better-whitespace.vim index 7b4c23d..ece91cc 100644 --- a/plugin/better-whitespace.vim +++ b/plugin/better-whitespace.vim @@ -191,7 +191,7 @@ command! CurrentLineWhitespaceOn call CurrentLineWhitespaceOn() " Process auto commands upon load, update local enabled on filetype change autocmd FileType * let b:better_whitespace_enabled = !ShouldSkipHighlight() | call SetupAutoCommands() -autocmd BufWinEnter * call SetupAutoCommands() +autocmd WinEnter,BufWinEnter * call SetupAutoCommands() autocmd ColorScheme * call WhitespaceInit() function! s:PerformMatchHighlight(pattern)