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