mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-10 04:41:15 -03:00
Remove ellipsis and newlines from long lines
Fix for issue https://github.com/fish-shell/fish-shell/issues/300
This commit is contained in:
@@ -660,7 +660,6 @@ static void exec_prompt()
|
||||
|
||||
for( i = 0; i < prompt_list.size(); i++ )
|
||||
{
|
||||
if (i > 0) data->prompt_buff += L'\n';
|
||||
data->prompt_buff += prompt_list.at(i);
|
||||
}
|
||||
}
|
||||
@@ -1522,7 +1521,6 @@ static bool handle_completions( const std::vector<completion_t> &comp )
|
||||
else
|
||||
{
|
||||
// append just the end of the string
|
||||
prefix = wcstring(&ellipsis_char, 1);
|
||||
prefix.append(data->command_line, prefix_start + len - PREFIX_MAX_LEN, wcstring::npos);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user