]> git.decadent.org.uk Git - ion3.git/blobdiff - ioncore/ioncore_winprops.lua
Imported Upstream version 20090110
[ion3.git] / ioncore / ioncore_winprops.lua
index 6a6ca51eb6b1478d93c07c78889f1de6308be905..329448691c018d2078304949aec139103f49406e 100644 (file)
@@ -1,7 +1,7 @@
 --
 -- ion/share/ioncore_winprops.lua
 -- 
--- Copyright (c) Tuomo Valkonen 2004-2007.
+-- Copyright (c) Tuomo Valkonen 2004-2009.
 --
 -- See the included file LICENSE for details.
 --
@@ -11,6 +11,7 @@ local ioncore=_G.ioncore
 local winprops={}
 
 local function ifnil(...)
+    local arg={...}
     local n=#arg
     local function nxt(_, i)
         local j=i+1
@@ -92,8 +93,8 @@ function ioncore.match_winprop_dflt(prop, cwin, id)
         if p==nil then
             return true
         else
-            return (p==(i and true)) 
-                           -- hack for nil
+            return (p==(i and true or false)) 
+                           -- hack for nil i
         end
     end