From 8feacdf535a9a25c961dfbf81c5b1f2ec3962174 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Tue, 10 Jul 2001 01:27:16 +0000 Subject: For E_TEP_END_OF_BUFFER, use the length in bytes, not the length in 2001-07-09 Federico Mena Quintero * 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 --- widgets/text/e-text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets/text') 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: -- cgit v1.2.3