[client] Fix cursor becoming invisible
This commit is contained in:
parent
e8b6efcb76
commit
661c233ce1
1 changed files with 7 additions and 1 deletions
|
|
@ -33,7 +33,13 @@ foldVisibleNodes = foldVisibleNodes' mempty
|
|||
|
||||
-- | Keep only those nodes that are visible according to the 'Unfolded' set.
|
||||
applyFolds :: Unfolded -> Node -> Node
|
||||
applyFolds = foldVisibleNodes (\_ node _ -> node)
|
||||
applyFolds unfolded node
|
||||
| mempty `Set.member` unfolded = node {nodeChildren = children}
|
||||
| otherwise = node {nodeChildren = OMap.empty}
|
||||
where
|
||||
children =
|
||||
OMap.mapWithKey (\nid -> applyFolds $ narrowSet nid unfolded) $
|
||||
nodeChildren node
|
||||
|
||||
-- | Return the 'Path's to a node and its subnodes in the order they would be
|
||||
-- displayed in.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue