blob: 4c3688820751218c96e69b5f1333e7fe0ed03697 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- src/item-edit.c.orig Thu Dec 27 06:10:52 2001
+++ src/item-edit.c Sun Aug 18 02:52:37 2002
@@ -240,6 +240,11 @@
return;
top_pos += item_edit->font->ascent;
+ /* Handle multibyte */
+ if( cursor_pos != -1 )
+ cursor_pos = strlen(gtk_editable_get_chars(GTK_EDITABLE(item_edit->entry),
+ 0, cursor_pos));
+
/* Draw the background (recall that gdk_draw_rectangle excludes far coords) */
gdk_draw_rectangle (
drawable, canvas->style->white_gc, TRUE,
|