diff options
author | Naïm Favier <n@monade.li> | 2021-12-22 16:37:58 +0100 |
---|---|---|
committer | Naïm Favier <n@monade.li> | 2021-12-22 16:37:58 +0100 |
commit | c4a03bc4ae7ac89dfca3ada27d1a7946d568d4d3 (patch) | |
tree | ac790543ac7551a9d980ad063590c98b3ae7bc83 /src | |
parent | 1da1b2b345ccf32220a2628622ee8b170d9d521a (diff) |
Fix attr path completion after a dot
Diffstat (limited to 'src')
-rw-r--r-- | src/libcmd/installables.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcmd/installables.cc b/src/libcmd/installables.cc index 5f118b8d0..6c20bb7b1 100644 --- a/src/libcmd/installables.cc +++ b/src/libcmd/installables.cc @@ -191,7 +191,7 @@ void SourceExprCommand::completeInstallable(std::string_view prefix) auto sep = prefix_.rfind('.'); std::string searchWord; if (sep != std::string::npos) { - searchWord = prefix_.substr(sep, std::string::npos); + searchWord = prefix_.substr(sep + 1, std::string::npos); prefix_ = prefix_.substr(0, sep); } else { searchWord = prefix_; |