mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 07:47:09 +08: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
@ -882,6 +882,11 @@ void s_write( screen_t *s,
|
||||
*/
|
||||
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 );
|
||||
prompt_width=0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user