prevent slowness in quickfix window to fix #24

This commit is contained in:
Alan Hamlett 2015-05-06 09:49:33 -07:00
parent a490f364cd
commit 12cbeb1ce3

View file

@ -163,8 +163,10 @@ let s:VERSION = '4.0.0'
let targetFile = s:GetCurrentFile()
let now = localtime()
let last = s:GetLastHeartbeat()
if a:is_write || s:EnoughTimePassed(now, last) || targetFile != last[2]
call s:Api(targetFile, now, a:is_write, last)
if targetFile !~ "-MiniBufExplorer-" && targetFile !~ "--NO NAME--" && targetFile != ""
if a:is_write || s:EnoughTimePassed(now, last) || targetFile != last[2]
call s:Api(targetFile, now, a:is_write, last)
endif
endif
endfunction