diff options
author | Owen Taylor <otaylor@redhat.com> | 2003-06-05 23:08:48 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2003-06-05 23:08:48 +0000 |
commit | 9cb6de1fa59059f6c8a21e79d4b6c9aec29def49 (patch) | |
tree | 01c23c6fe3fa497b673f61727c6b5c0a4846fc15 /gtk/gtktextlayout.c | |
parent | 6bbdea92f7d888b4e6d212655d97756545b514fa (diff) | |
download | gtk+-9cb6de1fa59059f6c8a21e79d4b6c9aec29def49.tar.gz |
If at the end of the buffer, move to the end iter - parallels behavior of
Thu Jun 5 15:33:38 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
If at the end of the buffer, move to the end iter -
parallels behavior of move_iter_to_previous_line.
(#81960, Padraig O'Briain)
Diffstat (limited to 'gtk/gtktextlayout.c')
-rw-r--r-- | gtk/gtktextlayout.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c index 99414521bc..52e7781371 100644 --- a/gtk/gtktextlayout.c +++ b/gtk/gtktextlayout.c @@ -2723,6 +2723,9 @@ gtk_text_layout_move_iter_to_next_line (GtkTextLayout *layout, line = _gtk_text_line_next_excluding_last (line); } + if (!found_after) + gtk_text_buffer_get_end_iter (layout->buffer, iter); + return !gtk_text_iter_equal (iter, &orig) && !gtk_text_iter_is_end (iter); |