summaryrefslogtreecommitdiff
path: root/org.handhelds.familiar/packages/java-gnome/libgtk-java/textbuffer.patch
blob: 0db37f0146a3f40d2ba01446322a962e7a54b623 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- libgtk-java-2.6.2/src/jni/org_gnu_gtk_TextBuffer.c.orig	2005-09-30 22:50:27.000000000 +0200
+++ libgtk-java-2.6.2/src/jni/org_gnu_gtk_TextBuffer.c	2005-09-30 23:55:30.000000000 +0200
@@ -120,7 +120,7 @@
     const char *utf = (*env)->GetStringUTFChars(env, text, NULL);
     jint len = (*env)->GetStringUTFLength(env, text);
     gtk_text_buffer_insert_at_cursor (buffer_g, 
-                                      (gchar*)utf, (gint32)len);
+                                      (gchar*)utf, (gint32)len - 1);
     (*env)->ReleaseStringUTFChars(env, text, utf);
 }