From 9d17a4bc572f48289b6d188684a7bbf8c46839fe Mon Sep 17 00:00:00 2001 From: Marius Date: Wed, 22 Sep 2010 11:03:47 +0300 Subject: beta 2010.09.22 09:35 --- scripts/context/lua/mtxrun.lua | 6 ++++-- scripts/context/stubs/mswin/mtxrun.lua | 6 ++++-- scripts/context/stubs/unix/mtxrun | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) (limited to 'scripts') diff --git a/scripts/context/lua/mtxrun.lua b/scripts/context/lua/mtxrun.lua index b175a35a4..622643f9c 100644 --- a/scripts/context/lua/mtxrun.lua +++ b/scripts/context/lua/mtxrun.lua @@ -615,7 +615,7 @@ local function sortedkeys(tab) elseif tkey == "number" then -- if kind == 1 then kind = 3 else kind = 2 end kind = (kind == 1 and 3) or 2 - else + else -- if tkey then kind = 3 end end @@ -631,7 +631,9 @@ end local function sortedhashkeys(tab) -- fast one local srt = { } for key,_ in next, tab do - srt[#srt+1] = key + if key then + srt[#srt+1] = key + end end sort(srt) return srt diff --git a/scripts/context/stubs/mswin/mtxrun.lua b/scripts/context/stubs/mswin/mtxrun.lua index b175a35a4..622643f9c 100644 --- a/scripts/context/stubs/mswin/mtxrun.lua +++ b/scripts/context/stubs/mswin/mtxrun.lua @@ -615,7 +615,7 @@ local function sortedkeys(tab) elseif tkey == "number" then -- if kind == 1 then kind = 3 else kind = 2 end kind = (kind == 1 and 3) or 2 - else + else -- if tkey then kind = 3 end end @@ -631,7 +631,9 @@ end local function sortedhashkeys(tab) -- fast one local srt = { } for key,_ in next, tab do - srt[#srt+1] = key + if key then + srt[#srt+1] = key + end end sort(srt) return srt diff --git a/scripts/context/stubs/unix/mtxrun b/scripts/context/stubs/unix/mtxrun index b175a35a4..622643f9c 100644 --- a/scripts/context/stubs/unix/mtxrun +++ b/scripts/context/stubs/unix/mtxrun @@ -615,7 +615,7 @@ local function sortedkeys(tab) elseif tkey == "number" then -- if kind == 1 then kind = 3 else kind = 2 end kind = (kind == 1 and 3) or 2 - else + else -- if tkey then kind = 3 end end @@ -631,7 +631,9 @@ end local function sortedhashkeys(tab) -- fast one local srt = { } for key,_ in next, tab do - srt[#srt+1] = key + if key then + srt[#srt+1] = key + end end sort(srt) return srt -- cgit v1.2.3