Skip to content

Commit

Permalink
Initialize all fields in user controls
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Sep 24, 2024
1 parent f0a49d0 commit 1ae3cc3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 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, 849 },
Version = { 3, 0, 0, 850 },
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 @@
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.
Expand Down
1 change: 1 addition & 0 deletions plugins/luamacro/luafar/lusercontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
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 849
#define PLUGIN_BUILD 850

0 comments on commit 1ae3cc3

Please sign in to comment.