Make the runtime changes to max_lines_in_memory useful
This commit is contained in:
parent
b44dae8fae
commit
b803db7ff6
1 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,9 @@ from theming import to_curses_attr, get_theme, dump_tuple
|
|||
|
||||
|
||||
class TextWin(Win):
|
||||
def __init__(self, lines_nb_limit=config.get('max_lines_in_memory')):
|
||||
def __init__(self, lines_nb_limit=None):
|
||||
if lines_nb_limit is None:
|
||||
lines_nb_limit = config.get('max_lines_in_memory')
|
||||
Win.__init__(self)
|
||||
self.lines_nb_limit = lines_nb_limit
|
||||
self.pos = 0
|
||||
|
|
Loading…
Reference in a new issue