mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-22 01:51:14 -03:00
Try to fix the launchpad build
A recent change used a C++14 overload of std::string::assign which defaulted the last parameter. Explicitly pass npos to make it C++11 friendly again.
This commit is contained in:
@@ -1608,7 +1608,7 @@ void completer_t::perform_for_commandline(wcstring cmdline) {
|
||||
if (tokens.size() == actual_token_count) {
|
||||
effective_cmdline = &cmdline;
|
||||
} else {
|
||||
effective_cmdline_buf.assign(cmdline, tokens.front().offset);
|
||||
effective_cmdline_buf.assign(cmdline, tokens.front().offset, wcstring::npos);
|
||||
effective_cmdline = &effective_cmdline_buf;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user