aboutsummaryrefslogtreecommitdiff
path: root/src/textadept.c
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-02-27 16:47:31 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2013-02-27 16:47:31 -0500
commit5e8553d7e90bcaf575a361b2bf19f2c3c5ccb517 (patch)
tree0936e8f84c9c2faa11c285cad2049c80f3ed96ea /src/textadept.c
parent27b512dd35047f9c3c5b0069cc8085b8de3da2b5 (diff)
downloadtextadept-5e8553d7e90bcaf575a361b2bf19f2c3c5ccb517.tar.gz
textadept-5e8553d7e90bcaf575a361b2bf19f2c3c5ccb517.zip
Fixed bug with indexable buffer properties that return strings; src/textadept.c
Diffstat (limited to 'src/textadept.c')
-rw-r--r--src/textadept.c2
1 files changed, 1 insertions, 1 deletions
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);