[vte] Minor



commit 7a2a78d3ea4a0128251089acef89d56241a455ca
Author: Behdad Esfahbod <behdad behdad org>
Date:   Thu Aug 20 23:13:06 2009 -0400

    Minor

 src/vteseq.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/vteseq.c b/src/vteseq.c
index ac05f9a..f1719a2 100644
--- a/src/vteseq.c
+++ b/src/vteseq.c
@@ -325,12 +325,9 @@ _vte_terminal_clear_screen (VteTerminal *terminal)
 	screen = terminal->pvt->screen;
 	initial = screen->insert_delta;
 	row = screen->cursor_current.row - screen->insert_delta;
+	initial = _vte_ring_next(screen->row_data);
 	/* Add a new screen's worth of rows. */
 	for (i = 0; i < terminal->row_count; i++) {
-		/* Add a new row */
-		if (i == 0) {
-			initial = _vte_ring_next(screen->row_data);
-		}
 		rowdata = _vte_new_row_data(terminal, TRUE);
 		_vte_ring_append(screen->row_data, rowdata);
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]