blob: 2e72eab92aff00426a6a3c0acb0b1f67c09da234 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- src/item-edit.c.orig Mon Oct 30 23:06:00 2000
+++ src/item-edit.c Mon Oct 30 23:08:03 2000
@@ -223,6 +223,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,
|