diff options
Diffstat (limited to 'src/textadept.c')
-rw-r--r-- | src/textadept.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/textadept.c b/src/textadept.c index fa8109c3..867b872d 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -1116,12 +1116,7 @@ static int lbuffer_text_range(lua_State *L) { static sptr_t lL_checkscintillaparam(lua_State *L, int *arg, int type) { if (type == SSTRING) return (sptr_t)luaL_checkstring(L, (*arg)++); if (type == SBOOL) return lua_toboolean(L, (*arg)++); - if (type >= SINT && type <= SCOLOR) return luaL_checkinteger(L, (*arg)++); - if (type == SKEYMOD) { - int key = luaL_checkinteger(L, (*arg)++) & 0xFFFF; - return key | ((luaL_checkinteger(L, (*arg)++) & - (SCMOD_SHIFT | SCMOD_CTRL | SCMOD_ALT)) << 16); - } + if (type >= SINT && type <= SKEYMOD) return luaL_checkinteger(L, (*arg)++); return 0; } |