diff options
author | Matthias Clasen <maclas@gmx.de> | 2003-01-04 23:28:06 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2003-01-04 23:28:06 +0000 |
commit | 315edfcce4be7cb07cc1e3644117c6b001819b3a (patch) | |
tree | 999566e9e88f53e79615cd3e2d514148713bc384 /gtk/gtktextiter.c | |
parent | b5b9fea0f74a30072b36717fedeb312eb988c747 (diff) | |
download | gtk+-315edfcce4be7cb07cc1e3644117c6b001819b3a.tar.gz |
Make C-Down step through the sequence of paragraph ends (old behaviour
2003-01-05 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make
C-Down step through the sequence of paragraph ends (old behaviour
included paragraph starts). (#80340, patch by Narayana Pattipati)
* gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle):
Check for a tag toggle at the start iterator before calling
gtk_text_iter_forward_to_tag_toggle(). (#102090, patch by Daniel
Elstner)
Diffstat (limited to 'gtk/gtktextiter.c')
-rw-r--r-- | gtk/gtktextiter.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtktextiter.c b/gtk/gtktextiter.c index 4db227380e..d49ceeeb05 100644 --- a/gtk/gtktextiter.c +++ b/gtk/gtktextiter.c @@ -5083,7 +5083,10 @@ _gtk_text_btree_get_iter_at_first_toggle (GtkTextBTree *tree, else { iter_init_from_byte_offset (iter, tree, line, 0); - gtk_text_iter_forward_to_tag_toggle (iter, tag); + + if (!gtk_text_iter_toggles_tag (iter, tag)) + gtk_text_iter_forward_to_tag_toggle (iter, tag); + check_invariants (iter); return TRUE; } |