[gtk/better-word-selection] textview: Improve word selection
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/better-word-selection] textview: Improve word selection
- Date: Thu, 19 Aug 2021 04:34:30 +0000 (UTC)
commit 8aa25046dc9401cb36abd9c28a3cfb85907f77e8
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Aug 19 00:33:03 2021 -0400
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
gtk/gtktextview.c | 2 --
1 file changed, 2 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index fbb00a685b..3f603f1bdc 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]