Restore terminal line length and cursor position on refresh.

This keeps printfs from blowing away the line state (M-m M-m
won't erase your prompt).
This commit is contained in:
Dan Haffey 2015-12-07 20:48:39 -08:00
parent a1c09592b8
commit d2391e78f8

View File

@ -591,9 +591,11 @@ static void
_term_it_refresh_line(u3_utty* uty_u)
{
c3_w len_w = uty_u->tat_u.mir.len_w;
c3_w cus_w = uty_u->tat_u.mir.cus_w;
_term_it_show_clear(uty_u);
_term_it_show_wide(uty_u, len_w, uty_u->tat_u.mir.lin_w);
_term_it_show_line(uty_u, uty_u->tat_u.mir.lin_w, len_w);
_term_it_show_cursor(uty_u, cus_w);
}
/* _term_it_show_more(): new current line.