[vte] Fix initial size of scrollback in alternate screen
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vte] Fix initial size of scrollback in alternate screen
- Date: Tue, 25 Aug 2009 22:14:31 +0000 (UTC)
commit ce4926abf990fa10d9172c058b2248fee69b75d5
Author: Behdad Esfahbod <behdad behdad org>
Date: Tue Aug 25 18:11:54 2009 -0400
Fix initial size of scrollback in alternate screen
src/debug.h | 1 +
src/vte.c | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/debug.h b/src/debug.h
index d829750..a437188 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -21,6 +21,7 @@
#ifndef vte_debug_h_included
#define vte_debug_h_included
+#include <config.h>
#include <glib.h>
diff --git a/src/vte.c b/src/vte.c
index 9e58235..6b5bdb2 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -13374,7 +13374,7 @@ vte_terminal_reset(VteTerminal *terminal, gboolean full, gboolean clear_history)
_vte_ring_free(terminal->pvt->normal_screen.row_data);
terminal->pvt->normal_screen.row_data = _vte_ring_new(terminal->pvt->scrollback_lines);
_vte_ring_free(terminal->pvt->alternate_screen.row_data);
- terminal->pvt->alternate_screen.row_data = _vte_ring_new(terminal->pvt->scrollback_lines);
+ terminal->pvt->alternate_screen.row_data = _vte_ring_new(terminal->row_count);
terminal->pvt->normal_screen.cursor_saved.row = 0;
terminal->pvt->normal_screen.cursor_saved.col = 0;
terminal->pvt->normal_screen.cursor_current.row = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]