Skip to content

Commit 5e9a6dc

Browse files
authored
Merge pull request #486 from lambdalisue/fix-collapse
Remove children cache on collapse
2 parents d8c6698 + 768d8de commit 5e9a6dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

autoload/fern/internal/node.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ function! fern#internal#node#collapse(node, nodes, provider, comparator, token)
152152
\.finally({ -> Done() })
153153
\.finally({ -> Profile() })
154154
call p.then({ -> s:Lambda.let(a:node, 'status', s:STATUS_COLLAPSED) })
155+
\.then({ -> s:Lambda.unlet(a:node.concealed, '__cache_children') })
155156
let a:node.concealed.__promise_collapse = p
156157
\.finally({ -> s:Lambda.unlet(a:node.concealed, '__promise_collapse') })
157158
return p

0 commit comments

Comments
 (0)