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)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Apr 2023 07:16:32 +0000 (09:16 +0200)
commit2ac3d0a59dce1656f6a46781797e270e54f88531
tree8797023388e21022729ea7001cf03a136ec2f620
parent353cec50c837902f93a3cb06483095fcc0176e78
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