Skip to content

Commit 0c0e1e0

Browse files
committed
fix(fold): refresh fb table in closure function
1 parent aebd36b commit 0c0e1e0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lua/ufo/fold/init.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ function Fold.update(bufnr)
7171
fb:acquireRequest()
7272

7373
local function dispose(resolved)
74+
---@diagnostic disable-next-line: redefined-local
75+
local fb = manager:get(bufnr)
76+
if not fb then
77+
return false
78+
end
7479
fb:releaseRequest()
7580
local ok = ft == fb:filetype() and bt == fb:buftype()
7681
if ok then

0 commit comments

Comments
 (0)