From 5e8553d7e90bcaf575a361b2bf19f2c3c5ccb517 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 27 Feb 2013 16:47:31 -0500 Subject: Fixed bug with indexable buffer properties that return strings; src/textadept.c --- src/textadept.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/textadept.c') diff --git a/src/textadept.c b/src/textadept.c index c5ade1e2..40c1f232 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -1180,7 +1180,7 @@ static int l_callscintilla(lua_State *L, int msg, int wtype, int ltype, wparam = (uptr_t)lua_rawlen(L, arg); lparam = (sptr_t)luaL_checkstring(L, arg); params_needed = 0; - } else if (ltype == tSTRINGRESULT) + } else if (ltype == tSTRINGRESULT || rtype == tSTRINGRESULT) string_return = TRUE, params_needed = (wtype == tLENGTH) ? 0 : 1; if (params_needed > 0) wparam = lL_checkscintillaparam(L, &arg, wtype); if (params_needed > 1) lparam = lL_checkscintillaparam(L, &arg, ltype); -- cgit v1.2.3