Skip to content

Commit c77ffda

Browse files
committed
Merge pull request #37 from hermes85pl/patch-1
Fix autocommand events
2 parents ee55558 + 60b660c commit c77ffda

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)