Merge pull request #510 from svermeulen/CursorHoldError

Bug fix, was triggering an error in the command line edit window (ie. th...
This commit is contained in:
Val Markovic 2013-08-15 14:30:51 -07:00
commit bce44ef0fc

View File

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