Skip to content

Commit 029f35c

Browse files
authored
Ignore TerminalWinOpen event when not supported (#163)
1 parent 4d45b4a commit 029f35c

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
@@ -390,7 +390,7 @@ autocmd ColorScheme * call <SID>WhitespaceInit()
390390
" Also check on specific buftype changes
391391
if has('nvim')
392392
autocmd TermOpen * call <SID>SetupAutoCommands()
393-
else
393+
elseif exists('##TerminalWinOpen')
394394
autocmd TerminalWinOpen * call <SID>SetupAutoCommands()
395395
endif
396396

0 commit comments

Comments
 (0)