From ce1229b434c4f8447e92fd0b12288cd4fd4ed24d Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Thu, 1 Oct 2020 15:55:53 +0300 Subject: [PATCH] refactor: Don't assign scope to variable from Lua VM --- ldoc.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ldoc.lua b/ldoc.lua index 907c4fb..87efd9a 100644 --- a/ldoc.lua +++ b/ldoc.lua @@ -256,11 +256,10 @@ ldoc_contents = tablex.makeset(ldoc_contents) local function loadstr (ldoc,txt) local chunk, err - local load -- Penlight's Lua 5.2 compatibility has wobbled over the years... if not rawget(_G,'loadin') then -- Penlight 0.9.5 -- Penlight 0.9.7; no more global load() override - load = load or utils.load + local load = load or utils.load chunk,err = load(txt,'config',nil,ldoc) else -- luacheck: push ignore 113