diff options
| author | tv <tv@krebsco.de> | 2026-04-02 03:31:02 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-04-02 03:31:02 +0200 |
| commit | 74a1f3986dcd5e87a11a4108297a36954d179a62 (patch) | |
| tree | 1b2777d399aceb56d87c7e4fa8b5f349e5fcd3ef | |
| parent | b1b504279eb3de707dc8ec2358d3ecb550c69dee (diff) | |
findFirsts -> findTopmost
| -rw-r--r-- | src/Much/TreeView.hs | 6 |
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{..} = |
