browson/nodeview.py
def draw(self):
        """Yield the currently visible lines in this tree view."""
        first, last = self.visible
        ret = []
        for i, (line, _) in enumerate(self.lines[first : last + 1], first):
            if self.search and self._matches(i):
                line = self._highlight_matches(line)
            if i == self.focus:
                line = self.term.on_gray20(self.term.ljust(line))
            ret.append(line)
        self.need_redraw = False
        return ret
Yield the currently visible lines in this tree view.
Yield the currently visible lines in this tree view.
Yield the currently visible lines in this tree view .
def draw(self):
        first, last = self.visible
        ret = []
        for i, (line, _) in enumerate(self.lines[first : last + 1], first):
            if self.search and self._matches(i):
                line = self._highlight_matches(line)
            if i == self.focus:
                line = self.term.on_gray20(self.term.ljust(line))
            ret.append(line)
        self.need_redraw = False
        return ret
def draw ( self ) : first , last = self . visible ret = [ ] for i , ( line , _ ) in enumerate ( self . lines [ first : last + 1 ] , first ) : if self . search and self . _matches ( i ) : line = self . _highlight_matches ( line ) if i == self . focus : line = self . term . on_gray20 ( self . term . ljust ( line ) ) ret . append ( line ) self . need_redraw = False return ret
Yield the currently visible lines in this tree view.
Yield the currently visible lines in this tree view .
"""Yield the currently visible lines in this tree view."""
self