From 0a09a777babf1d0c8e1905f2c78a1919d5400ab1 Mon Sep 17 00:00:00 2001 From: Ale32bit Date: Thu, 29 Dec 2016 19:34:26 +0100 Subject: [PATCH] Update sPhone.lua --- src/sPhone.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/sPhone.lua b/src/sPhone.lua index 5d5fc87..eaebbc0 100644 --- a/src/sPhone.lua +++ b/src/sPhone.lua @@ -1,6 +1,6 @@ local function kernel(...) _G.sPhone = { - version = "Beta 1.1", + version = "Beta 1.2", user = "Guest", devMode = false, mainTerm = term.current(), @@ -278,11 +278,11 @@ local function kernel(...) if str then term.setCursorPos(2, 1 + i - scroll) local isDir - if not pairs then + if not opt.pairs then isDir = fs.isDir(fs.combine(path, str)) - else - isDir = false - end + else + isDir = false + end term.setTextColor(isDir and opt.fg1b or opt.fg1) local _w = w - (isDir and 2 or 1) if #str > _w then