Commit befe86f1 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Allow to select the last word in the buffer. (#135487, Paolo Borelli)

Thu Mar  4 00:31:54 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktextview.c (extend_selection):
	* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Allow
	to select the last word in the buffer.  (#135487, Paolo Borelli)
parent 576ce814
Thu Mar 4 00:31:54 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextview.c (extend_selection):
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Allow
to select the last word in the buffer. (#135487, Paolo Borelli)
Wed Mar 3 23:54:31 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkentrycompletion.c: Doc update.
......
Thu Mar 4 00:31:54 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextview.c (extend_selection):
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Allow
to select the last word in the buffer. (#135487, Paolo Borelli)
Wed Mar 3 23:54:31 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkentrycompletion.c: Doc update.
......
Thu Mar 4 00:31:54 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextview.c (extend_selection):
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Allow
to select the last word in the buffer. (#135487, Paolo Borelli)
Wed Mar 3 23:54:31 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkentrycompletion.c: Doc update.
......
Thu Mar 4 00:31:54 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextview.c (extend_selection):
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Allow
to select the last word in the buffer. (#135487, Paolo Borelli)
Wed Mar 3 23:54:31 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkentrycompletion.c: Doc update.
......
Thu Mar 4 00:31:54 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextview.c (extend_selection):
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Allow
to select the last word in the buffer. (#135487, Paolo Borelli)
Wed Mar 3 23:54:31 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkentrycompletion.c: Doc update.
......
......@@ -4617,8 +4617,11 @@ gtk_text_view_move_cursor_internal (GtkTextView *text_view,
case GTK_MOVEMENT_WORDS:
if (count < 0)
gtk_text_iter_backward_visible_word_starts (&newplace, -count);
else if (count > 0)
gtk_text_iter_forward_visible_word_ends (&newplace, count);
else if (count > 0)
{
if (!gtk_text_iter_forward_visible_word_ends (&newplace, count))
gtk_text_iter_forward_to_end (&newplace);
}
break;
case GTK_MOVEMENT_DISPLAY_LINES:
......@@ -5398,7 +5401,10 @@ extend_selection (GtkTextView *text_view,
gtk_text_iter_backward_visible_word_start (start);
if (!gtk_text_iter_ends_word (end))
gtk_text_iter_forward_visible_word_end (end);
{
if (!gtk_text_iter_forward_visible_word_end (end))
gtk_text_iter_forward_to_end (end);
}
}
else
extend = FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment