summaryrefslogtreecommitdiffstats
path: root/lua/lua-plugin-init.c
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lua-plugin-init.c')
-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;
}