[vte/vte-0-40] widget: Fix the adjustment's upper boundary
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-0-40] widget: Fix the adjustment's upper boundary
- Date: Wed, 16 Mar 2016 21:15:37 +0000 (UTC)
commit df3281f9386a4555c658dbf4f9ed07e1e01d6dc5
Author: Egmont Koblinger <egmont gmail com>
Date: Mon Nov 2 21:16:14 2015 +0100
widget: Fix the adjustment's upper boundary
This is necessary for the contents to look properly when placed inside a
GtkScrolledWindow.
https://bugzilla.gnome.org/show_bug.cgi?id=757448
(cherry picked from commit 624f9f90d70ff9cb86b3424d75d7ca4a2e7774c6)
src/vte.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index ad10a2e..01efd9d 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -1748,10 +1748,7 @@ vte_terminal_emit_adjustment_changed(VteTerminal *terminal)
changed = TRUE;
}
- /* The upper value is the number of rows which might be visible. (Add
- * one to the cursor offset because it's zero-based.) */
- v = MAX(_vte_ring_next(screen->row_data),
- terminal->pvt->cursor.row + 1);
+ v = terminal->pvt->screen->insert_delta + terminal->pvt->row_count;
current = gtk_adjustment_get_upper(terminal->pvt->vadjustment);
if (current != v) {
_vte_debug_print(VTE_DEBUG_ADJ,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]