mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Print fish prompt when command is longer than a line
Fix for https://github.com/fish-shell/fish-shell/issues/239
This commit is contained in:
parent
bb4a05032b
commit
cf9bfe9e66
1 changed files with 5 additions and 0 deletions
|
@ -882,6 +882,11 @@ void s_write( screen_t *s,
|
||||||
*/
|
*/
|
||||||
if( max_line_width + prompt_width >= screen_width )
|
if( max_line_width + prompt_width >= screen_width )
|
||||||
{
|
{
|
||||||
|
for( i=0; i<prompt_width; i++ )
|
||||||
|
{
|
||||||
|
s_desired_append_char( s, L' ', 0, 0, prompt_width );
|
||||||
|
}
|
||||||
|
|
||||||
s_desired_append_char( s, L'\n', 0, 0, 0 );
|
s_desired_append_char( s, L'\n', 0, 0, 0 );
|
||||||
prompt_width=0;
|
prompt_width=0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue