prevent slowness in quickfix window to fix #24
This commit is contained in:
parent
a490f364cd
commit
12cbeb1ce3
1 changed files with 4 additions and 2 deletions
|
@ -163,9 +163,11 @@ let s:VERSION = '4.0.0'
|
||||||
let targetFile = s:GetCurrentFile()
|
let targetFile = s:GetCurrentFile()
|
||||||
let now = localtime()
|
let now = localtime()
|
||||||
let last = s:GetLastHeartbeat()
|
let last = s:GetLastHeartbeat()
|
||||||
|
if targetFile !~ "-MiniBufExplorer-" && targetFile !~ "--NO NAME--" && targetFile != ""
|
||||||
if a:is_write || s:EnoughTimePassed(now, last) || targetFile != last[2]
|
if a:is_write || s:EnoughTimePassed(now, last) || targetFile != last[2]
|
||||||
call s:Api(targetFile, now, a:is_write, last)
|
call s:Api(targetFile, now, a:is_write, last)
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" }}}
|
" }}}
|
||||||
|
|
Loading…
Reference in a new issue