diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-07-03 05:50:40 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-07-03 05:50:40 +0000 |
commit | b045a451099570488e977c6018174d9ac4bae1d7 (patch) | |
tree | f5010c005fe92b32c36d1e3dcbc1fa6420e1752b /gtk/gtkentry.c | |
parent | f8e1ed821d9c7827cfe2c6dd06aeb5ff0495c57b (diff) | |
download | gtk+-b045a451099570488e977c6018174d9ac4bae1d7.tar.gz |
Let the cursor move to the right end of the entry text, even if it ends in
Sat Jul 3 01:48:19 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkentry.c (gtk_entry_move_visually): Let the cursor move
to the right end of the entry text, even if it ends in combining
marks. (#141728, Theppitak Karoonboonyanan)
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r-- | gtk/gtkentry.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 1fc2848769..ff9919870a 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -3226,13 +3226,13 @@ gtk_entry_move_visually (GtkEntry *entry, count++; } - if (new_index < 0 || new_index == G_MAXINT) - break; - - index = new_index; + if (new_index < 0) + index = 0; + else if (new_index != G_MAXINT) + index = new_index; while (new_trailing--) - index = g_utf8_next_char (text + new_index) - text; + index = g_utf8_next_char (text + index) - text; } return g_utf8_pointer_to_offset (text, text + index); |