diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-10-23 15:23:54 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2013-10-23 15:23:54 +0200 |
commit | 936c62af024089c614e7dca10d6d123c48892300 (patch) | |
tree | 6cf316bf8539671928ad94f9ef9f36ea0fc4722d | |
parent | 918193b24451c087e1bef4039862ddb3c72eba31 (diff) |
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 <dh.herrmann@gmail.com>
-rw-r--r-- | src/tsm_screen.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |