Skip to content

Commit 7b3889c

Browse files
committed
Merge pull request #46 from sjmelia/master
Highlight whitespace on both BufEnter and WinEnter for e.g. split
2 parents 427b7c9 + 00ee4b7 commit 7b3889c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/better-whitespace.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ command! CurrentLineWhitespaceOn call <SID>CurrentLineWhitespaceOn()
191191

192192
" Process auto commands upon load, update local enabled on filetype change
193193
autocmd FileType * let b:better_whitespace_enabled = !<SID>ShouldSkipHighlight() | call <SID>SetupAutoCommands()
194-
autocmd BufWinEnter * call <SID>SetupAutoCommands()
194+
autocmd WinEnter,BufWinEnter * call <SID>SetupAutoCommands()
195195
autocmd ColorScheme * call <SID>WhitespaceInit()
196196

197197
function! s:PerformMatchHighlight(pattern)

0 commit comments

Comments
 (0)