Skip to content

Commit

Permalink
Fix mf.serialize and mf.msave
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuz committed Dec 23, 2023
1 parent 30d8321 commit 468de17
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/luamacro/_globalinfo.lua
@@ -1,6 +1,6 @@
function export.GetGlobalInfo()
return {
Version = { 3, 0, 0, 797 },
Version = { 3, 0, 0, 798 },
MinFarVersion = { 3, 0, 0, 6214 },
Guid = win.Uuid("4EBBEFC8-2084-4B7F-94C0-692CE136894D"),
Title = "LuaMacro",
Expand Down
4 changes: 2 additions & 2 deletions plugins/luamacro/api.lua
Expand Up @@ -497,10 +497,10 @@ local function tableSerialize (tbl)
if type(tbl) == "table" then
local idx = {}
AddToIndex(idx, tbl)
local lines = { "local idx={}; for i=1,"..#idx.." do idx[i]={} end" }
local lines = { "local t; local idx={}; for i=1,"..#idx.." do idx[i]={} end" }
for i,t in ipairs(idx) do
local found
lines[#lines+1] = "do local t=idx["..i.."]"
lines[#lines+1] = "do t=idx["..i.."]"
for k,v in pairs(t) do
local k2 = basicSerialize(k) or type(k)=="table" and "idx["..idx[k].."]"
if k2 then
Expand Down
5 changes: 5 additions & 0 deletions plugins/luamacro/changelog
@@ -1,3 +1,8 @@
shmuel 2023-12-23 21:37:06+02:00 - build 798

1. mf.serialize, mf.msave:
fix "chunk has more than 65476 local variables" error.

shmuel 2023-12-12 00:45:20+02:00 - build 797

1. LuaFAR: add _methods_ gmatch and gmatchW.
Expand Down
2 changes: 1 addition & 1 deletion plugins/luamacro/luafar/version.h
@@ -1,3 +1,3 @@
#include <farversion.hpp>

#define PLUGIN_BUILD 797
#define PLUGIN_BUILD 798

0 comments on commit 468de17

Please sign in to comment.