diff options
author | Egmont Koblinger <egmont@gmail.com> | 2019-04-08 22:58:54 +0200 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2019-04-08 22:58:54 +0200 |
commit | 52e546badeedf12dbbd7706042f1d0f3a9e4f0b3 (patch) | |
tree | cd8d185013ffd36b161f57498889d128e7d8a7b1 | |
parent | 33821ccd2923f86ff4246ec7f486cabb7931d1ca (diff) | |
download | vte-52e546badeedf12dbbd7706042f1d0f3a9e4f0b3.tar.gz |
widget: Cancel autoscroll on ending selecting0.56.1
https://gitlab.gnome.org/GNOME/vte/issues/105
-rw-r--r-- | src/vte.cc | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 }; |