mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 00:02:25 +00:00
Fix attr path completion after a dot
This commit is contained in:
parent
1da1b2b345
commit
c4a03bc4ae
@ -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_;
|
||||
|
Loading…
Reference in New Issue
Block a user