Fix cache issue
This commit is contained in:
parent
371a838a86
commit
28d6bf5064
|
@ -565,6 +565,10 @@ local detach = function(bufnr)
|
|||
dprint('Detached', bufnr)
|
||||
local bcache = cache[bufnr]
|
||||
|
||||
if not bcache then
|
||||
return
|
||||
end
|
||||
|
||||
os.remove(bcache.staged)
|
||||
|
||||
local w = bcache.index_watcher
|
||||
|
@ -574,7 +578,7 @@ local detach = function(bufnr)
|
|||
dprint('Index_watcher was nil', bufnr)
|
||||
end
|
||||
|
||||
bcache = nil
|
||||
cache[bufnr] = nil
|
||||
end
|
||||
|
||||
local detach_all = function()
|
||||
|
|
Loading…
Reference in New Issue