From: handa Date: Thu, 20 Oct 2005 03:57:56 +0000 (+0000) Subject: (setup_input_methods): Ignore an input method of name X-Git-Tag: REL-1-3-0~115 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=82e1460237a8e18fbf131bcda5ab29176d446bba;p=m17n%2Fm17n-lib.git (setup_input_methods): Ignore an input method of name nil. --- diff --git a/example/medit.c b/example/medit.c index 0b8a0db..bc954d3 100644 --- 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); }