projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63e19fb
)
(setup_input_methods): Ignore an input method of name
author
handa
<handa>
Thu, 20 Oct 2005 03:57:56 +0000
(
03:57
+0000)
committer
handa
<handa>
Thu, 20 Oct 2005 03:57:56 +0000
(
03:57
+0000)
nil.
example/medit.c
patch
|
blob
|
history
diff --git
a/example/medit.c
b/example/medit.c
index
0b8a0db
..
bc954d3
100644
(file)
--- a/
example/medit.c
+++ b/
example/medit.c
@@
-2211,8
+2211,13
@@
setup_input_methods (int with_xim, char *initial_input_method)
MDatabase *mdb = mplist_value (pl);
MSymbol *tag = mdatabase_tag (mdb);
- input_method_table[i].language = tag[1];
- input_method_table[i].name = tag[2];
+ if (tag[2] == Mnil)
+ i--, num_input_methods--;
+ else
+ {
+ input_method_table[i].language = tag[1];
+ input_method_table[i].name = tag[2];
+ }
}
m17n_object_unref (plist);
}