blob: f7dda9011c7e8276a8a926d7a0ff118c41eeb789 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
--- src/native/org_gnu_readline_Readline.c.orig 2003-01-07 11:14:35.000000000 +0100
+++ src/native/org_gnu_readline_Readline.c 2013-12-12 20:40:36.000000000 +0100
@@ -430,7 +430,7 @@
jtext = (*jniEnv)->NewStringUTF(jniEnv,text);
if (jniMethodId == 0) {
- return;
+ return 0;
}
completion = (*jniEnv)->CallObjectMethod(jniEnv, jniObject,
@@ -560,6 +560,21 @@
#endif
/* -------------------------------------------------------------------------- */
+/* Sets/gets rl_completion_append_character */
+/* -------------------------------------------------------------------------- */
+
+#ifndef JavaGetline
+JNIEXPORT jchar JNICALL
+Java_org_gnu_readline_Readline_setCompletionAppendCharacterImpl
+(JNIEnv * env, jclass class, jchar appendCharacter) {
+ int previous_setting = rl_completion_append_character;
+
+ rl_completion_append_character = (int)appendCharacter;
+ return (jchar)previous_setting;
+}
+#endif
+
+/* -------------------------------------------------------------------------- */
/* Convert utf8-string to ucs1-string . */
/* -------------------------------------------------------------------------- */
|