Fix swallowing of last line on prompt display. Again. How many times have I triggered this bug?

darcs-hash:20071015132106-75c98-11863d8b1743b84f6ad448b64e5ccdeb5aaa5a2f.gz
This commit is contained in:
liljencrantz 2007-10-15 23:21:06 +10:00
parent e54ce9a147
commit 0c1b40e3b3

View file

@ -931,10 +931,10 @@ void s_reset( screen_t *s, int reset_cursor )
This should prevent reseting the cursor position during the
next repaint.
*/
fstat( 1, &s->prev_buff_1 );
fstat( 2, &s->prev_buff_2 );
write( 1, "\r", 1 );
s->actual_cursor[1] = prev_line;
}
fstat( 1, &s->prev_buff_1 );
fstat( 2, &s->prev_buff_2 );
}