summaryrefslogtreecommitdiff
path: root/gtk/gtktextiter.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2001-11-14 19:05:21 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-11-14 19:05:21 +0000
commita433d5c5c1da3b763236f4183501e018e5f59e79 (patch)
tree2bbf04102d28d4d227675f298b12954a947b8d7d /gtk/gtktextiter.c
parent419f3e9bcc0f27b49dfd2e59328f10dc198a421d (diff)
downloadgdk-pixbuf-a433d5c5c1da3b763236f4183501e018e5f59e79.tar.gz
fix Control-E so it doesn't move to a new line each time you press it
2001-11-14 Havoc Pennington <hp@redhat.com> * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so it doesn't move to a new line each time you press it * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix return value, #62987
Diffstat (limited to 'gtk/gtktextiter.c')
-rw-r--r--gtk/gtktextiter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtktextiter.c b/gtk/gtktextiter.c
index 041ec2309..5a00c1760 100644
--- a/gtk/gtktextiter.c
+++ b/gtk/gtktextiter.c
@@ -3816,7 +3816,7 @@ gtk_text_iter_forward_to_line_end (GtkTextIter *iter)
{
/* Move to end of this line. */
gtk_text_iter_set_line_offset (iter, new_offset);
- return TRUE;
+ return !gtk_text_iter_is_end (iter);
}
else
{
@@ -3828,7 +3828,7 @@ gtk_text_iter_forward_to_line_end (GtkTextIter *iter)
*/
if (!gtk_text_iter_ends_line (iter))
gtk_text_iter_forward_to_line_end (iter);
- return TRUE;
+ return !gtk_text_iter_is_end (iter);
}
else
return FALSE;