1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-16 05:51:05 +01:00

When completing flakerefs, only return directories

This commit is contained in:
Eelco Dolstra 2020-05-11 22:04:13 +02:00
parent 259ff74bde
commit 27d34ef770
3 changed files with 15 additions and 3 deletions

View file

@ -109,7 +109,7 @@ Strings SourceExprCommand::getDefaultFlakeAttrPathPrefixes()
void SourceExprCommand::completeInstallable(std::string_view prefix)
{
completePath(0, prefix);
completeDir(0, prefix);
if (file) return; // FIXME