From ea819684d8f808b865f35e56b2d0f407d61fd65c Mon Sep 17 00:00:00 2001 From: svermeulen Date: Thu, 15 Aug 2013 17:19:17 -0300 Subject: [PATCH] Bug fix, was triggering an error in the command line edit window (ie. the window you get by hitting c-f in command line) after not moving the cursor for a few seconds (ie. when CursorHold event is fired) --- autoload/youcompleteme.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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