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)

This commit is contained in:
svermeulen 2013-08-15 17:19:17 -03:00
parent 5f9021e3e6
commit ea819684d8

View File

@ -164,7 +164,7 @@ endfunction
function! s:AllowedToCompleteInCurrentFile()
if empty( &filetype )
if empty( &filetype ) || getbufvar(winbufnr(winnr()), "&buftype") ==# 'nofile'
return 0
endif