From: David Herrmann Date: Wed, 23 Oct 2013 13:23:54 +0000 (+0200) Subject: screen: reset buffer-link on screen-reset X-Git-Tag: upstream/3.0~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=936c62af024089c614e7dca10d6d123c48892300;p=platform%2Fupstream%2Flibtsm.git screen: reset buffer-link on screen-reset We need to reset the lines-link to main_lines during reset, otherwise the alternate buffer stays active (which is not what we want). Signed-off-by: David Herrmann --- diff --git a/src/tsm_screen.c b/src/tsm_screen.c index 098b1f9..fc95242 100644 --- a/src/tsm_screen.c +++ b/src/tsm_screen.c @@ -890,6 +890,7 @@ void tsm_screen_reset(struct tsm_screen *con) con->flags = 0; con->margin_top = 0; con->margin_bottom = con->size_y - 1; + con->lines = con->main_lines; for (i = 0; i < con->size_x; ++i) { if (i % 8 == 0)