mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Fix for issue where completing in the middle of a command may append extra junk at the end of the completions in the list
https://github.com/fish-shell/fish-shell/issues/301
This commit is contained in:
parent
af9d611847
commit
e9c226b8be
1 changed files with 1 additions and 1 deletions
|
@ -1648,7 +1648,7 @@ static bool handle_completions(const std::vector<completion_t> &comp)
|
||||||
{
|
{
|
||||||
// append just the end of the string
|
// append just the end of the string
|
||||||
prefix = wcstring(&ellipsis_char, 1);
|
prefix = wcstring(&ellipsis_char, 1);
|
||||||
prefix.append(data->command_line, prefix_start + len - PREFIX_MAX_LEN - 1, wcstring::npos);
|
prefix.append(data->command_line, prefix_start + len - PREFIX_MAX_LEN - 1, PREFIX_MAX_LEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue