Skip to content

Commit

Permalink
Уточнение revision 13045.
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuz committed Mar 19, 2015
1 parent ae988db commit 2b069c2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion plugins/luamacro/_globalinfo.lua
@@ -1,6 +1,6 @@
function export.GetGlobalInfo()
return {
Version = { 1, 0, 0, 494 },
Version = { 1, 0, 0, 495 },
MinFarVersion = { 3, 0, 0, 4276 },
Guid = win.Uuid("4EBBEFC8-2084-4B7F-94C0-692CE136894D"),
Title = "LuaMacro",
Expand Down
6 changes: 5 additions & 1 deletion plugins/luamacro/changelog
@@ -1,4 +1,8 @@
shmuel 18.03.2015 20:34:15 +0200 - build 494
shmuel 19.03.2015 09:18:45 +0200 - build 495

1. Уточнение 494.

shmuel 18.03.2015 20:34:15 +0200 - build 494

1. LuaFAR (библиотека regex): падение при большом количестве captures (несколько десятков) из-за
отсутствовавшего вызова lua_checkstack.
Expand Down
6 changes: 3 additions & 3 deletions plugins/luamacro/luafar/lregex.c
Expand Up @@ -193,9 +193,9 @@ int rx_find_match(lua_State *L, int op_find, int is_function, int is_wide)
}

skip = (op_find || data.Count>1) ? 1 : 0;

if (!lua_checkstack(L, (int)data.Count - skip))
luaL_error(L, "cannot add %d stack slots", (int)data.Count - skip);
i = (int)data.Count - skip + 1;
if (!lua_checkstack(L, i))
luaL_error(L, "cannot add %d stack slots", i);

for(i=skip; i<data.Count; i++)
{
Expand Down
2 changes: 1 addition & 1 deletion plugins/luamacro/luamacro.rc
@@ -1,6 +1,6 @@
#include <farversion.hpp>

#define PLUGIN_BUILD 494
#define PLUGIN_BUILD 495
#define PLUGIN_DESC "Lua Macros for Far Manager"
#define PLUGIN_NAME "LuaMacro"
#define PLUGIN_FILENAME "luamacro.dll"
Expand Down

0 comments on commit 2b069c2

Please sign in to comment.