[vte/vte-0-36] widget: Set the ring's in-memory size on terminal reset
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-0-36] widget: Set the ring's in-memory size on terminal reset
- Date: Mon, 2 Jun 2014 22:13:14 +0000 (UTC)
commit 641ed539fab30f2fbcf88a8faab61f108e7df012
Author: Egmont Koblinger <egmont gmail com>
Date: Mon May 26 12:19:14 2014 +0200
widget: Set the ring's in-memory size on terminal reset
(cherry picked from commit 2249f514c877041dd291a717360cd6e2747103f5)
Conflicts:
src/vte.c
src/vte.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 53a3025..f59648b 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -13925,8 +13925,10 @@ vte_terminal_reset(VteTerminal *terminal,
if (clear_history) {
_vte_ring_fini(pvt->normal_screen.row_data);
_vte_ring_init(pvt->normal_screen.row_data, pvt->scrollback_lines);
+ _vte_ring_set_visible_rows_hint(pvt->normal_screen.row_data, terminal->row_count);
_vte_ring_fini(pvt->alternate_screen.row_data);
_vte_ring_init(pvt->alternate_screen.row_data, terminal->row_count);
+ _vte_ring_set_visible_rows_hint(pvt->alternate_screen.row_data, terminal->row_count);
pvt->normal_screen.cursor_saved.row = 0;
pvt->normal_screen.cursor_saved.col = 0;
pvt->normal_screen.cursor_current.row = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]