summaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorPeng Wu <epico@dhcp-65-116.nay.redhat.com>2010-04-07 14:52:32 +0800
committerPeng Wu <alexepico@gmail.com>2010-05-19 10:09:32 +0800
commitfc07e4c1311e9ed7702fac1f0bd6882804d1a362 (patch)
treef90be9c515c17aef888fccfc82a8c866eedfd1b9 /lua
parentd6d3f471888f57f0f5758189da1573cb5d93931f (diff)
downloadibus-libpinyin-fc07e4c1311e9ed7702fac1f0bd6882804d1a362.tar.gz
ibus-libpinyin-fc07e4c1311e9ed7702fac1f0bd6882804d1a362.tar.xz
ibus-libpinyin-fc07e4c1311e9ed7702fac1f0bd6882804d1a362.zip
change isnil to isnone.
Diffstat (limited to 'lua')
-rw-r--r--lua/lua-plugin-init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/lua-plugin-init.c b/lua/lua-plugin-init.c
index 20fc0b0..69e356e 100644
--- a/lua/lua-plugin-init.c
+++ b/lua/lua-plugin-init.c
@@ -187,17 +187,17 @@ static int ime_register_command(lua_State * L){
lua_pop(L, 1);
description = luaL_checklstring(L, 3, NULL);
- if ( !lua_isnil(L, 4)) {
+ if ( !lua_isnone(L, 4)) {
leading = luaL_checklstring(L, 4, NULL);
}else{
leading = "digit";
}
- if ( !lua_isnil(L, 5)) {
+ if ( !lua_isnone(L, 5)) {
help = luaL_checklstring(L, 5, NULL);
}
-
+ /* check whether the same command exists. */
return 0;
}