Skip to content

Commit

Permalink
LuaFAR: fix the last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuz committed May 19, 2024
1 parent 182f91b commit 8540f60
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugins/luamacro/_globalinfo.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function export.GetGlobalInfo()
return {
Version = { 3, 0, 0, 834 },
Version = { 3, 0, 0, 835 },
MinFarVersion = { 3, 0, 0, 6327 },
Guid = win.Uuid("4EBBEFC8-2084-4B7F-94C0-692CE136894D"),
Title = "LuaMacro",
Expand Down
4 changes: 4 additions & 0 deletions plugins/luamacro/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
shmuel 2024-05-20 01:24:46+03:00 - build 835

1. LuaFAR: fix the last commit.

shmuel 2024-05-19 17:31:46+03:00 - build 834

1. LuaFAR: refactoring.
Expand Down
6 changes: 3 additions & 3 deletions plugins/luamacro/luafar/service.c
Original file line number Diff line number Diff line change
Expand Up @@ -1707,12 +1707,12 @@ static int far_Menu(lua_State *L)
luaL_checktype(L, POS_ITEMS, LUA_TTABLE);
ItemsNumber = lua_objlen(L, POS_ITEMS);

if (!lua_isnil(L,POS_BKEYS) && !lua_istable(L,POS_BKEYS) && lua_type(L,POS_BKEYS)!=LUA_TSTRING)
return luaL_argerror(L, POS_BKEYS, "must be table, string or nil");

lua_settop(L, POS_BKEYS); // cut unneeded parameters; make stack predictable
lua_newtable(L); // temporary store; at stack position 4

if (!lua_isnil(L,POS_BKEYS) && !lua_istable(L,POS_BKEYS) && lua_type(L,POS_BKEYS)!=LUA_TSTRING)
return luaL_argerror(L, POS_BKEYS, "must be table, string or nil");

// Properties
lua_pushvalue(L, POS_PROPS);
X = GetOptIntFromTable(L, "X", -1);
Expand Down
2 changes: 1 addition & 1 deletion plugins/luamacro/luafar/version.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#include <farversion.hpp>

#define PLUGIN_BUILD 834
#define PLUGIN_BUILD 835

0 comments on commit 8540f60

Please sign in to comment.