[FarGroup/FarManager] master: LuaMacro: 1. adaptation to far 3.0.6632. (6f30d8c3e)

0 views
Skip to first unread message

farg...@farmanager.com

unread,
9:45 AM (8 hours ago) 9:45 AM
to farco...@googlegroups.com
Repository : https://github.com/FarGroup/FarManager
On branch : master
Link : https://github.com/FarGroup/FarManager/commit/6f30d8c3e477246e97e9f45eaf7dbfc62d4c476f

>---------------------------------------------------------------

commit 6f30d8c3e477246e97e9f45eaf7dbfc62d4c476f
Author: Vadim Yegorov <z...@bmg.lv>
Date: Fri Jan 16 16:31:21 2026 +0200

LuaMacro:
1. adaptation to far 3.0.6632.


>---------------------------------------------------------------

6f30d8c3e477246e97e9f45eaf7dbfc62d4c476f
plugins/luamacro/_globalinfo.lua | 4 ++--
plugins/luamacro/changelog | 4 ++++
plugins/luamacro/luafar/lf_service.c | 19 +++++++++++++------
plugins/luamacro/luafar/lf_version.h | 2 +-
4 files changed, 20 insertions(+), 9 deletions(-)

diff --git a/plugins/luamacro/_globalinfo.lua b/plugins/luamacro/_globalinfo.lua
index 691b88472..fc516616b 100644
--- a/plugins/luamacro/_globalinfo.lua
+++ b/plugins/luamacro/_globalinfo.lua
@@ -1,7 +1,7 @@
function export.GetGlobalInfo()
return {
- Version = { 3, 0, 0, 913 },
- MinFarVersion = { 3, 0, 0, 6564 },
+ Version = { 3, 0, 0, 914 },
+ MinFarVersion = { 3, 0, 0, 6632 },
Guid = win.Uuid("4EBBEFC8-2084-4B7F-94C0-692CE136894D"),
Title = "LuaMacro",
Description = "Far macros in Lua",
diff --git a/plugins/luamacro/changelog b/plugins/luamacro/changelog
index d01ea7d70..566be23ca 100644
--- a/plugins/luamacro/changelog
+++ b/plugins/luamacro/changelog
@@ -1,3 +1,7 @@
+zg 2026-01-16 16:29:31+02:00 - build 914
+
+1. adaptation to far 3.0.6632.
+
shmuel 2026-01-11 01:58:38+02:00 - build 913

1. far.Message: fix for multi-width chars (from far2m).
diff --git a/plugins/luamacro/luafar/lf_service.c b/plugins/luamacro/luafar/lf_service.c
index 16608254c..a28568063 100644
--- a/plugins/luamacro/luafar/lf_service.c
+++ b/plugins/luamacro/luafar/lf_service.c
@@ -644,6 +644,16 @@ void PushPanelItem(lua_State *L, const struct PluginPanelItem *PanelItem, int No
}
}
}
+
+static void PutRECTToTable(lua_State *L, const char* key, RECT rect)
+{
+ lua_createtable(L, 0, 4);
+ PutIntToTable(L, "left", rect.left);
+ PutIntToTable(L, "top", rect.top);
+ PutIntToTable(L, "right", rect.right);
+ PutIntToTable(L, "bottom", rect.bottom);
+ lua_setfield(L, -2, key);
+}
//---------------------------------------------------------------------------

void PushPanelItems(lua_State *L, const struct PluginPanelItem *PanelItems, size_t ItemsNumber, int NoUserData)
@@ -757,6 +767,8 @@ static int editor_GetInfo(lua_State *L)
PutNumToTable(L, "SessionBookmarkCount", (double) ei.SessionBookmarkCount);
PutNumToTable(L, "CurState", (double) ei.CurState);
PutNumToTable(L, "CodePage", (double) ei.CodePage);
+ PutRECTToTable(L, "WindowArea", ei.WindowArea);
+ PutRECTToTable(L, "ClientArea", ei.ClientArea);
return 1;
}

@@ -2234,12 +2246,7 @@ static int panel_GetPanelInfo(lua_State *L)
//-------------------------------------------------------------------------
PutIntToTable(L, "PanelType", pi.PanelType);
//-------------------------------------------------------------------------
- lua_createtable(L, 0, 4); // "PanelRect"
- PutIntToTable(L, "left", pi.PanelRect.left);
- PutIntToTable(L, "top", pi.PanelRect.top);
- PutIntToTable(L, "right", pi.PanelRect.right);
- PutIntToTable(L, "bottom", pi.PanelRect.bottom);
- lua_setfield(L, -2, "PanelRect");
+ PutRECTToTable(L, "PanelRect", pi.PanelRect);
//-------------------------------------------------------------------------
PutIntToTable(L, "ItemsNumber", pi.ItemsNumber);
PutIntToTable(L, "SelectedItemsNumber", pi.SelectedItemsNumber);
diff --git a/plugins/luamacro/luafar/lf_version.h b/plugins/luamacro/luafar/lf_version.h
index 1806397a8..31fc892a8 100644
--- a/plugins/luamacro/luafar/lf_version.h
+++ b/plugins/luamacro/luafar/lf_version.h
@@ -1,3 +1,3 @@
#include <farversion.hpp>

-#define PLUGIN_BUILD 913
+#define PLUGIN_BUILD 914


Reply all
Reply to author
Forward
0 new messages