[vte] Bug 604966 - Fix "select all" to include text occurring after the visible region



commit 7f017f27ff254995c1ad4fbe4947b929c4c6046f
Author: Behdad Esfahbod <behdad behdad org>
Date:   Sat Dec 19 13:50:04 2009 +0100

    Bug 604966 - Fix "select all" to include text occurring after the visible region

 src/vte.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 9ae78ec..0e3764b 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -6716,8 +6716,8 @@ vte_terminal_select_all (VteTerminal *terminal)
 
 	terminal->pvt->selection_start.row = _vte_ring_delta (terminal->pvt->screen->row_data);
 	terminal->pvt->selection_start.col = 0;
-	terminal->pvt->selection_end.row = terminal->pvt->screen->scroll_delta + terminal->row_count;
-	terminal->pvt->selection_end.col = 0;
+	terminal->pvt->selection_end.row = _vte_ring_next (terminal->pvt->screen->row_data);
+	terminal->pvt->selection_end.col = -1;
 
 	_vte_debug_print(VTE_DEBUG_SELECTION, "Selecting *all* text.\n");
 



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