[vte/vte-0-34] Bug 676075 - Incorrect scrollbar position after the "less" command
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-0-34] Bug 676075 - Incorrect scrollbar position after the "less" command
- Date: Mon, 30 Sep 2013 00:32:19 +0000 (UTC)
commit 488d7a2d37ba66fbf7483a1ac7b33ee03dfdfe3f
Author: Behdad Esfahbod <behdad behdad org>
Date: Sun Sep 29 20:31:33 2013 -0400
Bug 676075 - Incorrect scrollbar position after the "less" command
Patch from Egmont Koblinger.
src/vte.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 830a372..57980a6 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -13842,6 +13842,9 @@ vte_terminal_set_scrollback_lines(VteTerminal *terminal, glong lines)
}
/* Adjust the scrollbars to the new locations. */
+ /* Hack: force a change in scroll_delta even if the value remains, so that
+ vte_term_q_adj_val_changed() doesn't shortcut to no-op, see bug 676075. */
+ terminal->pvt->screen->scroll_delta = -1;
vte_terminal_queue_adjustment_value_changed (terminal, scroll_delta);
_vte_terminal_adjust_adjustments_full (terminal);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]