textview: Reset press counter if double/triple clicking on a different line
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 12 Apr 2023 09:24:46 +0000 (11:24 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 12 Apr 2023 09:27:41 +0000 (11:27 +0200)
commit5b9a7863cf63644ca0b5651cc79dbf9d90543caf
tree0df59ec25abeed056640d877a6208fadb7dd89cf
parente9f7a9b8e60912bcbb412f5b0fcd437dac7b4735
textview: Reset press counter if double/triple clicking on a different line

If we click close enough between lines, and with the maximum distances applied
by GtkGestureClick we could jump between lines when handling double/triple
click for word/line selection.

Ensure that the whole operation stays in the same line and reset the
gesture/counter if we do move between lines, so we start from scratch in the
new line.
gtk/gtktextview.c