Make the runtime changes to max_lines_in_memory useful

This commit is contained in:
mathieui 2014-10-20 21:06:26 +02:00
parent b44dae8fae
commit b803db7ff6
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -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