diff options
author | Steven Barth <steven@midlink.org> | 2008-09-08 18:34:26 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-09-08 18:34:26 +0000 |
commit | 023b4ddf646438cfb0a468fdcb3a32945b239e20 (patch) | |
tree | 2c39ea8f1eb5e346d9c88ead224b1972cb398a5e /libs/uvl | |
parent | 5d3bddd89958dc257fc3d48d88d6be278a75c8d8 (diff) |
Fixed UVL
Diffstat (limited to 'libs/uvl')
-rw-r--r-- | libs/uvl/luasrc/uvl.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/uvl/luasrc/uvl.lua b/libs/uvl/luasrc/uvl.lua index 98d0d59f53..acbdccde68 100644 --- a/libs/uvl/luasrc/uvl.lua +++ b/libs/uvl/luasrc/uvl.lua @@ -835,12 +835,12 @@ function uvlitem.scheme(self, opt) local s = self._scheme if not s then - s = self.s and self.s.packages and s[self.sref[1]] - if #self.sref > 1 then - s = s and s.sections and s[self.sref[2]] - end - if #self.sref > 2 then - s = s and s[self.sref[2]] and s[self.sref[3]] + s = self.s and self.s.packages and self.s.packages[self.sref[1]] + if #self.sref == 2 then + s = s and s.sections and s.sections[self.sref[2]] + elseif #self.sref > 2 then + s = s and s.variables and s.variables[self.sref[2]] + and s.variables[self.sref[2]][self.sref[3]] end self._scheme = s end |