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:
e99c4d4
)
(open_im): Return -1 if the input method has no state.
author
handa
<handa>
Thu, 30 Sep 2010 11:10:03 +0000
(11:10 +0000)
committer
handa
<handa>
Thu, 30 Sep 2010 11:10:03 +0000
(11:10 +0000)
src/input.c
patch
|
blob
|
history
diff --git
a/src/input.c
b/src/input.c
index
61baa7a
..
a4f6fe3
100644
(file)
--- a/
src/input.c
+++ b/
src/input.c
@@
-3795,7
+3795,7
@@
open_im (MInputMethod *im)
{
MInputMethodInfo *im_info = get_im_info (im->language, im->name, Mnil, Mnil);
- if (! im_info || ! im_info->states)
+ if (! im_info || ! im_info->states || MPLIST_LENGTH (im_info->states) == 0)
MERROR (MERROR_IM, -1);
im->info = im_info;