textview: Improve word selection

Avoid selecting a whole extra paragraph when a select-by-words
selection is extended beyond the end of the previous paragraph.

Fixes: #4177
This commit is contained in:
Matthias Clasen
2021-08-19 00:33:03 -04:00
parent 27a07ed89c
commit 8aa25046dc

View File

@@ -7265,8 +7265,6 @@ gtk_text_view_extend_selection (GtkTextView *text_view,
if (gtk_text_iter_get_line (&tmp) == gtk_text_iter_get_line (end))
*end = tmp;
else
gtk_text_iter_forward_to_line_end (end);
}
break;