Skip to content

Commit 60b660c

Browse files
committed
Fix autocommand events
This fixes issue #34.
1 parent c862362 commit 60b660c

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
@@ -194,7 +194,7 @@ command! -nargs=* CurrentLineWhitespaceOff call <SID>CurrentLineWhitespaceOff( <
194194
command! CurrentLineWhitespaceOn call <SID>CurrentLineWhitespaceOn()
195195

196196
" Process auto commands upon load
197-
autocmd BufWinEnter * call <SID>SetupAutoCommands()
197+
autocmd BufWinEnter,FileType * call <SID>SetupAutoCommands()
198198
autocmd ColorScheme * call <SID>WhitespaceInit()
199199

200200
" Executes all auto commands

0 commit comments

Comments
 (0)