diff options
author | regnat <rg@regnat.ovh> | 2021-11-26 16:56:25 +0100 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2021-11-26 16:56:51 +0100 |
commit | 3a0277305a5d86f29e5bdc1c425c45e4bd7dbe71 (patch) | |
tree | 7263fa518c2fe29facf9340312b9f3b9cfab0795 /src/libcmd | |
parent | 55275fcc5966cfad80fb6dc77b8d8939a2f1b8e0 (diff) |
Don’t try to complete flakes is the feature isn’t enabled
Fix #5661
Diffstat (limited to 'src/libcmd')
-rw-r--r-- | src/libcmd/installables.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libcmd/installables.cc b/src/libcmd/installables.cc index 5758b52ad..ef200b1d2 100644 --- a/src/libcmd/installables.cc +++ b/src/libcmd/installables.cc @@ -291,6 +291,9 @@ void completeFlakeRefWithFragment( void completeFlakeRef(ref<Store> store, std::string_view prefix) { + if (!settings.isExperimentalFeatureEnabled(Xp::Flakes)) + return; + if (prefix == "") completions->add("."); |