Skip to content

Commit

Permalink
LuaFAR: refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuz committed Oct 3, 2024
1 parent ee9c3d0 commit a3c51b1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 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, 851 },
Version = { 3, 0, 0, 852 },
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-10-03 22:53:54+03:00 - build 852

1. LuaFAR: refactoring.

shmuel 2024-10-03 22:41:21+03:00 - build 851

1. LuaFAR: refactoring.
Expand Down
6 changes: 2 additions & 4 deletions plugins/luamacro/luafar/service.c
Original file line number Diff line number Diff line change
Expand Up @@ -2752,10 +2752,6 @@ static int far_SaveScreen(lua_State *L)

*(void**)lua_newuserdata(L, sizeof(void*)) = GetPluginData(L)->Info->SaveScreen(X1,Y1,X2,Y2);
luaL_getmetatable(L, SavedScreenType);
lua_pushcfunction(L, far_FreeScreen);
lua_setfield(L, -2, "__gc");
lua_pushcfunction(L, SavedScreen_tostring);
lua_setfield(L, -2, "__tostring");
lua_setmetatable(L, -2);
return 1;
}
Expand Down Expand Up @@ -6709,6 +6705,8 @@ static int luaopen_far(lua_State *L)
luaL_newmetatable(L, SavedScreenType);
lua_pushcfunction(L, far_FreeScreen);
lua_setfield(L, -2, "__gc");
lua_pushcfunction(L, SavedScreen_tostring);
lua_setfield(L, -2, "__tostring");

return 0;
}
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 851
#define PLUGIN_BUILD 852

0 comments on commit a3c51b1

Please sign in to comment.