aboutsummaryrefslogtreecommitdiff
path: root/src/nix/search.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2022-04-19 22:39:57 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2022-04-19 22:39:57 +0000
commit08b8657978de0d56064aad9c3e925b64d91b28a2 (patch)
tree450624684f97857bbedd193a0e3e09ed190f9138 /src/nix/search.cc
parent8f9990a4072d4ed31cdc080840364758b4bc6317 (diff)
parent55caef36ed1cee2e924c82cf49b3ceb17bdde910 (diff)
Merge branch 'path-info' into ca-drv-exotic
Diffstat (limited to 'src/nix/search.cc')
-rw-r--r--src/nix/search.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/search.cc b/src/nix/search.cc
index e9307342c..e96a85ea2 100644
--- a/src/nix/search.cc
+++ b/src/nix/search.cc
@@ -165,8 +165,8 @@ struct CmdSearch : InstallableCommand, MixJSON
}
};
- for (auto & [cursor, prefix] : installable->getCursors(*state))
- visit(*cursor, parseAttrPath(*state, prefix), true);
+ for (auto & cursor : installable->getCursors(*state))
+ visit(*cursor, cursor->getAttrPath(), true);
if (!json && !results)
throw Error("no results for the given search term(s)!");