summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2012-10-05 19:52:00 +0200
committerHans Hagen <pragma@wxs.nl>2012-10-05 19:52:00 +0200
commitc9b5e0c8f0273527f74ff7b032e7e2482166574e (patch)
treebf16769ccbb14d5b4419feafffce16c392ffa16d /scripts
parent08f8bbb60ad11fe3fe1b5632b2eca97422c5bf8c (diff)
downloadcontext-c9b5e0c8f0273527f74ff7b032e7e2482166574e.tar.gz
beta 2012.10.05 19:52
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/lua/mtxrun.lua3
-rw-r--r--scripts/context/stubs/mswin/mtxrun.lua3
-rwxr-xr-xscripts/context/stubs/unix/mtxrun3
3 files changed, 6 insertions, 3 deletions
diff --git a/scripts/context/lua/mtxrun.lua b/scripts/context/lua/mtxrun.lua
index 93901f665..58d0e7f59 100644
--- a/scripts/context/lua/mtxrun.lua
+++ b/scripts/context/lua/mtxrun.lua
@@ -599,7 +599,8 @@ local function do_serialize(root,name,depth,level,indexed)
if compact then
last = #root
for k=1,last do
- if not root[k] then
+-- if not root[k] then
+ if root[k] == nil then
last = k - 1
break
end
diff --git a/scripts/context/stubs/mswin/mtxrun.lua b/scripts/context/stubs/mswin/mtxrun.lua
index 93901f665..58d0e7f59 100644
--- a/scripts/context/stubs/mswin/mtxrun.lua
+++ b/scripts/context/stubs/mswin/mtxrun.lua
@@ -599,7 +599,8 @@ local function do_serialize(root,name,depth,level,indexed)
if compact then
last = #root
for k=1,last do
- if not root[k] then
+-- if not root[k] then
+ if root[k] == nil then
last = k - 1
break
end
diff --git a/scripts/context/stubs/unix/mtxrun b/scripts/context/stubs/unix/mtxrun
index 93901f665..58d0e7f59 100755
--- a/scripts/context/stubs/unix/mtxrun
+++ b/scripts/context/stubs/unix/mtxrun
@@ -599,7 +599,8 @@ local function do_serialize(root,name,depth,level,indexed)
if compact then
last = #root
for k=1,last do
- if not root[k] then
+-- if not root[k] then
+ if root[k] == nil then
last = k - 1
break
end