diff --git a/plugins/luamacro/_globalinfo.lua b/plugins/luamacro/_globalinfo.lua index 213494d469..4521add16d 100644 --- a/plugins/luamacro/_globalinfo.lua +++ b/plugins/luamacro/_globalinfo.lua @@ -1,6 +1,6 @@ function export.GetGlobalInfo() return { - Version = { 3, 0, 0, 854 }, + Version = { 3, 0, 0, 855 }, MinFarVersion = { 3, 0, 0, 6380 }, Guid = win.Uuid("4EBBEFC8-2084-4B7F-94C0-692CE136894D"), Title = "LuaMacro", diff --git a/plugins/luamacro/changelog b/plugins/luamacro/changelog index 8146d45d82..3aab9b8f05 100644 --- a/plugins/luamacro/changelog +++ b/plugins/luamacro/changelog @@ -1,3 +1,7 @@ +shmuel 2024-10-28 21:17:03+02:00 - build 855 + +1. LuaFAR: viewer.Quit() returns a boolean (was: nothing). + shmuel 2024-10-09 23:52:28+03:00 - build 854 1. Refactoring diff --git a/plugins/luamacro/luafar/service.c b/plugins/luamacro/luafar/service.c index 70cc749f3e..1f537d4208 100644 --- a/plugins/luamacro/luafar/service.c +++ b/plugins/luamacro/luafar/service.c @@ -4272,8 +4272,8 @@ static int viewer_Quit(lua_State *L) { intptr_t ViewerId = luaL_optinteger(L, 1, -1); PSInfo *Info = GetPluginData(L)->Info; - Info->ViewerControl(ViewerId, VCTL_QUIT, 0, 0); - return 0; + lua_pushboolean(L, Info->ViewerControl(ViewerId, VCTL_QUIT, 0, 0)); + return 1; } static int viewer_Redraw(lua_State *L) diff --git a/plugins/luamacro/luafar/version.h b/plugins/luamacro/luafar/version.h index 6bda759522..cf67bb6bde 100644 --- a/plugins/luamacro/luafar/version.h +++ b/plugins/luamacro/luafar/version.h @@ -1,3 +1,3 @@ #include -#define PLUGIN_BUILD 854 +#define PLUGIN_BUILD 855