From b803db7ff67bea7b5898e34853f2af6baaa16f6f Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 20 Oct 2014 21:06:26 +0200 Subject: Make the runtime changes to max_lines_in_memory useful --- src/windows/text_win.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/windows') diff --git a/src/windows/text_win.py b/src/windows/text_win.py index 4c6b9a18..f634f5a6 100644 --- a/src/windows/text_win.py +++ b/src/windows/text_win.py @@ -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 -- cgit v1.2.3