Skip to content

Commit e13c0bb

Browse files
committed
Don't highlight namespaces named the same as a definition
1 parent ae8f5b3 commit e13c0bb

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)
331+
|> List.any (\fqn -> FQN.isSuffixOf fqn name && not (FQN.equals fqn name))
332332
in
333333
div [ class "subtree" ]
334334
[ a

0 commit comments

Comments
 (0)