diff --git a/plugins/luamacro/_globalinfo.lua b/plugins/luamacro/_globalinfo.lua index e30d215954..6264dfbdf7 100644 --- a/plugins/luamacro/_globalinfo.lua +++ b/plugins/luamacro/_globalinfo.lua @@ -1,6 +1,6 @@ function export.GetGlobalInfo() return { - Version = { 3, 0, 0, 849 }, + Version = { 3, 0, 0, 850 }, MinFarVersion = { 3, 0, 0, 6327 }, Guid = win.Uuid("4EBBEFC8-2084-4B7F-94C0-692CE136894D"), Title = "LuaMacro", diff --git a/plugins/luamacro/changelog b/plugins/luamacro/changelog index 5d2ccb8470..9a93b77b2e 100644 --- a/plugins/luamacro/changelog +++ b/plugins/luamacro/changelog @@ -1,3 +1,7 @@ +drkns 2024-09-24 16:09:16+01:00 - build 850 + +1. Initialize all fields in user controls. + shmuel 2024-09-21 01:58:53+03:00 - build 849 1. LuaFAR: a fix in makefarkeys.lua. diff --git a/plugins/luamacro/luafar/lusercontrol.c b/plugins/luamacro/luafar/lusercontrol.c index 2c1e984dfc..7b190a887e 100644 --- a/plugins/luamacro/luafar/lusercontrol.c +++ b/plugins/luamacro/luafar/lusercontrol.c @@ -76,6 +76,7 @@ static int uc_newindex(lua_State* L) static TFarUserControl* push_far_usercontrol(lua_State* L, intptr_t X, intptr_t Y) { TFarUserControl* fuc = (TFarUserControl*)lua_newuserdata(L, sizeof(TFarUserControl) + sizeof(struct FAR_CHAR_INFO)*(X*Y-1)); + memset(fuc->VBuf, 0, sizeof(struct FAR_CHAR_INFO) * X * Y); fuc->X = X; fuc->Y = Y; fuc->Size = X*Y; diff --git a/plugins/luamacro/luafar/version.h b/plugins/luamacro/luafar/version.h index 5315a2c9bb..9fe2831e31 100644 --- a/plugins/luamacro/luafar/version.h +++ b/plugins/luamacro/luafar/version.h @@ -1,3 +1,3 @@ #include -#define PLUGIN_BUILD 849 +#define PLUGIN_BUILD 850