[vte/vte-0-34] Bug 676075 - Incorrect scrollbar position after the "less" command



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]