Fix inspect setTerm and estimatedHeight

This commit is contained in:
Ben 2024-06-02 21:27:15 +02:00
parent 3bfe943328
commit e650a16f0e
Signed by: ben
GPG key ID: 0F54A7ED232D3319

View file

@ -5,6 +5,7 @@ local frame = term.current()
local function setTerm(termlike) local function setTerm(termlike)
frame = termlike frame = termlike
listview.setTerm(frame)
end end
local function setObject(other) local function setObject(other)
@ -29,6 +30,10 @@ local function displayTab(self)
listview.updatePage(self.scrollPos) listview.updatePage(self.scrollPos)
end end
local function estimatedHeight()
return #keys
end
return { return {
name="inspect", name="inspect",
@ -36,4 +41,5 @@ return {
setObject=setObject, setObject=setObject,
fetch=fetch, fetch=fetch,
displayTab=displayTab, displayTab=displayTab,
estimatedHeight=estimatedHeight,
} }