emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/lua-mode adb1f3a 334/468: lua_loadstring: fix variables th


From: Philip Kaludercic
Subject: [nongnu] elpa/lua-mode adb1f3a 334/468: lua_loadstring: fix variables that were made global
Date: Thu, 5 Aug 2021 04:59:04 -0400 (EDT)

branch: elpa/lua-mode
commit adb1f3a7c69ef09cf4df5282a4aabd4c08d99738
Author: immerrr <immerrr+lua@gmail.com>
Commit: immerrr <immerrr+lua@gmail.com>

    lua_loadstring: fix variables that were made global
---
 lua-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lua-mode.el b/lua-mode.el
index 614c0ec..8137619 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -1702,7 +1702,7 @@ This function just searches for a `end' at the beginning 
of a line."
      "    str = string.rep('\\n', lineoffset - 1) .. str"
      "  end"
      ""
-     "  x, e = loadstring(str, '@'..displayname)"
+     "  local x, e = loadstring(str, '@'..displayname)"
      "  if e then"
      "    error(e)"
      "  end"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]