Skip to content

Commit de6caab

Browse files
skopciewskintpeters
authored andcommitted
Fix for 'Undefined variable' err when no FileType (#85)
1 parent ca9d5bd commit de6caab

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
@@ -336,7 +336,7 @@ endif
336336

337337
" Process auto commands upon load, update local enabled on filetype change
338338
autocmd FileType * call <SID>ShouldHighlight() | call <SID>SetupAutoCommands()
339-
autocmd WinEnter,BufWinEnter * call <SID>SetupAutoCommands()
339+
autocmd WinEnter,BufWinEnter * call <SID>ShouldHighlight() | call <SID>SetupAutoCommands()
340340
autocmd ColorScheme * call <SID>WhitespaceInit()
341341

342342
function! s:PerformMatchHighlight(pattern)

0 commit comments

Comments
 (0)