From f19d439314aa7b692964b8eda2431c814d93db0a Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Sun, 30 Dec 2018 06:15:16 -0500 Subject: [PATCH] upgrade shell config file --- sys/apis/ui.lua | 2 +- sys/extensions/4.user.lua | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/sys/apis/ui.lua b/sys/apis/ui.lua index 7911419..03e52b0 100644 --- a/sys/apis/ui.lua +++ b/sys/apis/ui.lua @@ -3212,7 +3212,7 @@ function UI.TextArea:draw() -- self:setCursorPos(1, 1) self.cursorX, self.cursorY = 1, 1 self:print(self.value) - self.ymax = self.cursorY + 1 + self.ymax = self.cursorY for _,child in pairs(self.children) do if child.enabled then diff --git a/sys/extensions/4.user.lua b/sys/extensions/4.user.lua index 49e5d91..c6d0d9e 100644 --- a/sys/extensions/4.user.lua +++ b/sys/extensions/4.user.lua @@ -14,11 +14,18 @@ end local lua_path = package.path +-- TODO: Temporary +local upgrade = Util.readTable('usr/config/shell') +if upgrade and not upgrade.upgraded then + fs.delete('usr/config/shell') +end + if not fs.exists('usr/config/shell') then Util.writeTable('usr/config/shell', { aliases = shell.aliases(), path = 'usr/apps', lua_path = lua_path, + upgraded = true, }) end