[vte] 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] widget: Set the ring's in-memory size on terminal reset
- Date: Mon, 26 May 2014 10:20:03 +0000 (UTC)
commit 2249f514c877041dd291a717360cd6e2747103f5
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
src/vte.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index d72f316..72687c2 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -12414,8 +12414,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, pvt->row_count);
_vte_ring_fini(pvt->alternate_screen.row_data);
- _vte_ring_init(pvt->alternate_screen.row_data, terminal->pvt->row_count);
+ _vte_ring_init(pvt->alternate_screen.row_data, pvt->row_count);
+ _vte_ring_set_visible_rows_hint(pvt->alternate_screen.row_data, pvt->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]