Skip to content

Commit 7b15c11

Browse files
committed
Do NOT collapse prior to reveal
Not like expand-tree, we must keep previous expand/collapse state of children thus we cannot collapse prior to reveal.
1 parent e75d45d commit 7b15c11

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

autoload/fern/internal/node.vim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,7 @@ function! fern#internal#node#reveal(key, nodes, provider, comparator, token) abo
208208
if node is# v:null || node.status is# s:STATUS_NONE
209209
return s:Promise.resolve(a:nodes)
210210
endif
211-
return fern#internal#node#collapse(node, a:nodes, a:provider, a:comparator, a:token)
212-
\.then({ ns -> s:expand_recursively(0, a:key, ns, a:provider, a:comparator, a:token) })
211+
return s:expand_recursively(0, a:key, a:nodes, a:provider, a:comparator, a:token)
213212
\.finally({ -> Profile() })
214213
endfunction
215214

0 commit comments

Comments
 (0)