Verified Commit b803db7f authored by mathieui's avatar mathieui

Make the runtime changes to max_lines_in_memory useful

parent b44dae8f
......@@ -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')
self.lines_nb_limit = lines_nb_limit
self.pos = 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment