mirror of
https://github.com/kepler155c/opus
synced 2025-10-13 14:57:41 +00:00
transition to kernel
This commit is contained in:
@@ -217,10 +217,6 @@ kernel.hook('multishell_redraw', function()
|
||||
parentTerm.setCursorPos(1, 1)
|
||||
parentTerm.clearLine()
|
||||
|
||||
local function compareTab(a, b)
|
||||
return a.uid < b.uid
|
||||
end
|
||||
|
||||
local currentTab = kernel.routines[1]
|
||||
|
||||
for _,tab in pairs(kernel.routines) do
|
||||
@@ -244,6 +240,10 @@ tab.title = tab.env._APP_TITLE or tab.title
|
||||
tab.width = tab.width - 1
|
||||
end
|
||||
|
||||
local function compareTab(a, b)
|
||||
return b.hidden and -1 or a.uid < b.uid
|
||||
end
|
||||
|
||||
local tabX = 0
|
||||
for _,tab in Util.spairs(kernel.routines, compareTab) do
|
||||
if tab.width > 0 then
|
||||
|
Reference in New Issue
Block a user