Skip to content

Commit c30d708

Browse files
committed
Flip isSuffixOf check for open definitions
1 parent ca78ac1 commit c30d708

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Code/CodebaseTree.elm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ viewNamespaceListing viewConfig openDefinitions expandedNamespaceListings (Names
328328
hasOpenDefinitions =
329329
openDefinitions
330330
|> FQNSet.toList
331-
|> List.any (\fqn -> FQN.isSuffixOf fqn name && not (FQN.equals fqn name))
331+
|> List.any (\openFqn -> FQN.isSuffixOf name openFqn && not (FQN.equals openFqn name))
332332
in
333333
div [ class "subtree" ]
334334
[ a

0 commit comments

Comments
 (0)