aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/command.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-04-19 13:45:33 +0200
committerGitHub <noreply@github.com>2022-04-19 13:45:33 +0200
commit51712bf0127e995c94a4b598b045d52cf667dcef (patch)
treedec8970d571edf1753af01f067b90718714b48f2 /src/libcmd/command.hh
parent2016b7142ad1282981ad1505085fff0ac9c7d66c (diff)
parentda7d8daa77c2cce5805947a012060b02be9e4a43 (diff)
Merge pull request #6128 from ncfavier/fix-completion
Shell completion improvements
Diffstat (limited to 'src/libcmd/command.hh')
-rw-r--r--src/libcmd/command.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcmd/command.hh b/src/libcmd/command.hh
index 15bc13c6e..84bbb5292 100644
--- a/src/libcmd/command.hh
+++ b/src/libcmd/command.hh
@@ -135,7 +135,7 @@ struct InstallableCommand : virtual Args, SourceExprCommand
std::optional<FlakeRef> getFlakeRefForCompletion() override
{
- return parseFlakeRef(_installable, absPath("."));
+ return parseFlakeRefWithFragment(_installable, absPath(".")).first;
}
private: