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:
Siteshwar Vashisht 2012-07-21 00:24:48 +05:30
parent bb4a05032b
commit cf9bfe9e66

View file

@ -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;
} }