summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-12-19 13:50:04 +0100
committerBehdad Esfahbod <behdad@behdad.org>2009-12-19 13:50:04 +0100
commit7f017f27ff254995c1ad4fbe4947b929c4c6046f (patch)
tree62f575ebacb349de04cc022a0ad2875f13304529 /src
parent3c99618132e8f5924f7a865ce595593889000211 (diff)
Bug 604966 - Fix "select all" to include text occurring after the visible region
Diffstat (limited to 'src')
-rw-r--r--src/vte.c4
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");