From 3e4f1462bcccedddf67fa30574c5e4e740f82262 Mon Sep 17 00:00:00 2001
From: khonkhortisan <khonkhortisan@gmail.com>
Date: Sat, 8 Jun 2013 19:15:26 -0600
Subject: [PATCH] Fix crash in dump() when index is a table

---
 builtin/misc_helpers.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/builtin/misc_helpers.lua b/builtin/misc_helpers.lua
index 8b0db6c5a..526be0492 100644
--- a/builtin/misc_helpers.lua
+++ b/builtin/misc_helpers.lua
@@ -57,7 +57,7 @@ function dump(o, dumped)
 		dumped[o] = true
 		local t = {}
 		for k,v in pairs(o) do
-			t[#t+1] = "" .. k .. " = " .. dump(v, dumped)
+			t[#t+1] = "" .. dump(k, dumped) .. " = " .. dump(v, dumped)
 		end
 		return "{" .. table.concat(t, ", ") .. "}"
 	elseif type(o) == "boolean" then
-- 
GitLab