diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index ae75ee26..347f073d 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