aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-07-10 09:27:16 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-07-10 09:27:16 +0800
commit8feacdf535a9a25c961dfbf81c5b1f2ec3962174 (patch)
tree41b25e369d37df21cca6116a7ac79b706a153854
parent01b400424b0554f947c2d1acda104ffaf8b5aedc (diff)
downloadgsoc2013-evolution-8feacdf535a9a25c961dfbf81c5b1f2ec3962174.tar
gsoc2013-evolution-8feacdf535a9a25c961dfbf81c5b1f2ec3962174.tar.gz
gsoc2013-evolution-8feacdf535a9a25c961dfbf81c5b1f2ec3962174.tar.bz2
gsoc2013-evolution-8feacdf535a9a25c961dfbf81c5b1f2ec3962174.tar.lz
gsoc2013-evolution-8feacdf535a9a25c961dfbf81c5b1f2ec3962174.tar.xz
gsoc2013-evolution-8feacdf535a9a25c961dfbf81c5b1f2ec3962174.tar.zst
gsoc2013-evolution-8feacdf535a9a25c961dfbf81c5b1f2ec3962174.zip
For E_TEP_END_OF_BUFFER, use the length in bytes, not the length in
2001-07-09 Federico Mena Quintero <federico@ximian.com> * gal/e-text/e-text.c (_get_position): For E_TEP_END_OF_BUFFER, use the length in bytes, not the length in characters --- this function is supposed to return byte offsets. svn path=/trunk/; revision=10941
-rw-r--r--widgets/text/e-text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index d838518d5f..db67f83067 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -3203,7 +3203,7 @@ _get_position(EText *text, ETextEventProcessorCommand *command)
break;
case E_TEP_END_OF_BUFFER:
- new_pos = g_utf8_strlen (text->text, -1);
+ new_pos = strlen (text->text);
break;
case E_TEP_START_OF_LINE: