[vte] widget: Fix triple click behavior
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Fix triple click behavior
- Date: Sun, 18 Jan 2015 16:55:56 +0000 (UTC)
commit b72d5b7bd39aceac6d1163e0fe0a3cd9012fcaa5
Author: Egmont Koblinger <egmont gmail com>
Date: Sun Jan 18 17:54:12 2015 +0100
widget: Fix triple click behavior
https://bugzilla.gnome.org/show_bug.cgi?id=725909#c1
src/vte.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index b63c745..2f3a538 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -6601,6 +6601,12 @@ vte_terminal_extend_selection_expand (VteTerminal *terminal)
sc->row = j;
}
/* And move forward as far as we can go. */
+ if (ec->col < 0) {
+ /* If triple clicking on an unused area, ec already points
+ * to the beginning of the next line after the second click.
+ * Go back to the actual row we're at. See bug 725909. */
+ ec->row--;
+ }
j = ec->row;
while (_vte_ring_contains (screen->row_data, j) &&
vte_line_is_wrappable(terminal, j)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]