wip top info: mode 1 working
@@ -429,9 +429,10 @@ class TopInfo(StaticWindow):
self.host = host
self.borrowedRows = 0
self.lines = []
- self.mode = 5
+ self.mode = 1
def onChange(self):
+ app.log.debug(' top info change')
if self.mode == 0:
return
if self.borrowedRows:
@@ -447,8 +448,7 @@ class TopInfo(StaticWindow):
while len(line) == 0 and lineCursor > 0:
line = tb.lines[lineCursor]
lineCursor -= 1
- if len(line) == 0:
- return
+ if len(line):
indent = 0
while line[indent] == ' ':
indent += 1
@@ -478,7 +478,7 @@ class TopInfo(StaticWindow):
lines.append(self.host.textBuffer.fullPath)
self.lines = lines
if 1 or self.borrowedRows != self.rows:
- self.borrowedRows = len(self.lines)
+ self.borrowedRows = len(self.lines) + 1
if self.mode > 0:
self.borrowedRows = self.mode
self.resizeTo(self.borrowedRows, self.cols)
