diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index 0a7a5056..3a5b28c3 100644 --- a/autoload/youcompleteme.vim +++ b/autoload/youcompleteme.vim @@ -164,7 +164,7 @@ endfunction function! s:AllowedToCompleteInCurrentFile() - if empty( &filetype ) + if empty( &filetype ) || getbufvar(winbufnr(winnr()), "&buftype") ==# 'nofile' return 0 endif