Fix inspect setTerm and estimatedHeight
This commit is contained in:
parent
3bfe943328
commit
e650a16f0e
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue