diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2022-04-19 22:27:21 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2022-04-19 22:27:21 +0000 |
commit | 55caef36ed1cee2e924c82cf49b3ceb17bdde910 (patch) | |
tree | 78af86998140b242713a2c54f35bad45b4cc4449 /src/nix/search.cc | |
parent | 13c669105ca93d28ca1a78321f07fd4ddbb445b1 (diff) | |
parent | ee57f91413c9d01f1027eccbe01f7706c94919ac (diff) |
Merge remote-tracking branch 'upstream/master' into path-info
Diffstat (limited to 'src/nix/search.cc')
-rw-r--r-- | src/nix/search.cc | 4 |
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)!"); |