From fc07e4c1311e9ed7702fac1f0bd6882804d1a362 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 7 Apr 2010 14:52:32 +0800 Subject: [PATCH] change isnil to isnone. --- lua/lua-plugin-init.c | 6 +++--- 1 file 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; } -- 2.7.4