From 3cd19db601a6ca46152b8a95954bedb5852416eb Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Tue, 28 Aug 2012 22:14:57 +0200 Subject: [PATCH] showInfoMsgWithDelay with number of results Conflicts: crereader.lua --- cre.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cre.cpp b/cre.cpp index 69ecb5499..c17c83be6 100644 --- a/cre.cpp +++ b/cre.cpp @@ -500,8 +500,9 @@ static int findText(lua_State *L) { int pos = ranges->get(0)->start.y; //doc->text_view->SetPos(pos); // commented out not to mask lua code which does the same CRLog::debug("# SetPos = %d", pos); + lua_pushinteger(L, ranges->length()); // results found lua_pushinteger(L, pos); - return 1; + return 2; } } return 0;