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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user