diff options
-rw-r--r-- | CHANGELOG.md | 3 | ||||
-rw-r--r-- | lua/pl/import_into.lua | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 32b4198..405fcb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,9 @@ see [CONTRIBUTING.md](CONTRIBUTING.md#release-instructions-for-a-new-version) fo [#400](https://github.com/lunarmodules/Penlight/pull/400) - fix: `stringx.expandtabs` could error out on Lua 5.3+ [#406](https://github.com/lunarmodules/Penlight/pull/406) + - fix: `pl` the module would not properly forward the `newindex` metamethod + on the global table. + [#395](https://github.com/lunarmodules/Penlight/pull/395) ## 1.11.0 (2021-08-18) diff --git a/lua/pl/import_into.lua b/lua/pl/import_into.lua index 6dd2741..46aaa3e 100644 --- a/lua/pl/import_into.lua +++ b/lua/pl/import_into.lua @@ -50,7 +50,7 @@ return function(env) if prevenvmt then _prev_index = prevenvmt.__index if prevenvmt.__newindex then - gmt.__index = prevenvmt.__newindex + gmt.__newindex = prevenvmt.__newindex end end |