Skip to content

Commit

Permalink
Fix for 'Undefined variable' err when no FileType (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
skopciewski authored and ntpeters committed May 3, 2018
1 parent ca9d5bd commit de6caab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/better-whitespace.vim
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ endif

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

function! s:PerformMatchHighlight(pattern)
Expand Down

0 comments on commit de6caab

Please sign in to comment.