Fix function name in LUA indentation script error message.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/114/head
Slávek Banko 4 years ago
parent 03ba6a3ee4
commit 6f0a598346
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -153,7 +153,7 @@ static int katelua_document_insertText(lua_State *L) {
lua_error(L); lua_error(L);
} }
if ((!lua_isnumber(L,1)) || (!lua_isnumber(L,2)) ||(!lua_isstring(L,3)) ) { if ((!lua_isnumber(L,1)) || (!lua_isnumber(L,2)) ||(!lua_isstring(L,3)) ) {
lua_pushstring(L,i18n("document.removeText:Three parameters needed (line,col,text) (number,number,string)").utf8().data()); lua_pushstring(L,i18n("document.insertText:Three parameters needed (line,col,text) (number,number,string)").utf8().data());
lua_error(L); lua_error(L);
} }
lua_pushboolean(L,katelua_doc->insertText((uint)lua_tonumber(L,1),(uint)lua_tonumber(L,2),TQString::fromUtf8(lua_tostring(L,3)))); lua_pushboolean(L,katelua_doc->insertText((uint)lua_tonumber(L,1),(uint)lua_tonumber(L,2),TQString::fromUtf8(lua_tostring(L,3))));

Loading…
Cancel
Save