summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgmont Koblinger <egmont@gmail.com>2019-04-08 22:58:54 +0200
committerChristian Persch <chpe@src.gnome.org>2019-04-08 22:58:54 +0200
commit52e546badeedf12dbbd7706042f1d0f3a9e4f0b3 (patch)
treecd8d185013ffd36b161f57498889d128e7d8a7b1
parent33821ccd2923f86ff4246ec7f486cabb7931d1ca (diff)
downloadvte-52e546badeedf12dbbd7706042f1d0f3a9e4f0b3.tar.gz
widget: Cancel autoscroll on ending selecting0.56.1
https://gitlab.gnome.org/GNOME/vte/issues/105
-rw-r--r--src/vte.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vte.cc b/src/vte.cc
index af01264e..0aa9a3fc 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -6651,6 +6651,7 @@ Terminal::maybe_end_selection()
widget_copy(VTE_SELECTION_PRIMARY, VTE_FORMAT_TEXT);
emit_selection_changed();
}
+ stop_autoscroll(); /* Required before setting m_selecting to false, see #105. */
m_selecting = false;
/* Reconnect to input from the child if we paused it. */
@@ -9952,6 +9953,7 @@ Terminal::reset(bool clear_tabstops,
/* Reset the visual bits of selection on hard reset, see bug 789954. */
if (clear_history) {
deselect_all();
+ stop_autoscroll(); /* Required before setting m_selecting to false, see #105. */
m_selecting = FALSE;
m_selecting_had_delta = FALSE;
m_selection_origin = m_selection_last = { -1, -1, 1 };