aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/lua_interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua_interface.c b/src/lua_interface.c
index 62678c96..8553a36a 100644
--- a/src/lua_interface.c
+++ b/src/lua_interface.c
@@ -605,7 +605,7 @@ LF l_call_scintilla(LS *lua, ScintillaObject *sci, int msg,
params_needed = 0;
} else if (p2_type == tSTRINGRESULT) {
string_return = true;
- params_needed = 1;
+ params_needed = p1_type == tLENGTH ? 0 : 1;
}
if (params_needed > 0) params[0] = l_toscintillaparam(lua, p1_type, arg);
if (params_needed > 1) params[1] = l_toscintillaparam(lua, p2_type, arg);