summaryrefslogtreecommitdiffstats
path: root/src/Much/TreeView.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Much/TreeView.hs')
-rw-r--r--src/Much/TreeView.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Much/TreeView.hs b/src/Much/TreeView.hs
index 2b3c8f2..02ccde0 100644
--- a/src/Much/TreeView.hs
+++ b/src/Much/TreeView.hs
@@ -142,7 +142,7 @@ loadSubForest = \case
. map unloadReadSubForests
. concatMap subForest
. fromMessageForest
- . findFirsts messageMatch
+ . findTopmost messageMatch
<$> notmuchShow (termFromMessage m)
TVMessagePart m mp@MessagePart{partContentType="text/html"} ->
@@ -245,8 +245,8 @@ unloadPartsWithFilename =
in x' { subForest = map rewriteTree $ subForest x' }
-findFirsts :: (a -> Bool) -> Forest a -> Forest a
-findFirsts p =
+findTopmost :: (a -> Bool) -> Forest a -> Forest a
+findTopmost p =
concatMap rec
where
rec t@Node{..} =