diff --git a/inspect.lua b/inspect.lua index bb2f31a..474c6dd 100644 --- a/inspect.lua +++ b/inspect.lua @@ -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, }