From 82e1460237a8e18fbf131bcda5ab29176d446bba Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 20 Oct 2005 03:57:56 +0000 Subject: [PATCH] (setup_input_methods): Ignore an input method of name nil. --- example/medit.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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); } -- 1.7.10.4