summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-10-20 21:06:26 +0200
committermathieui <mathieui@mathieui.net>2014-10-20 21:21:06 +0200
commitb803db7ff67bea7b5898e34853f2af6baaa16f6f (patch)
tree80f0e676d8a09211b08010594287ecd6a0fafd6a /src
parentb44dae8fae4884387d4d149a17033b261c940dea (diff)
downloadpoezio-b803db7ff67bea7b5898e34853f2af6baaa16f6f.tar.gz
poezio-b803db7ff67bea7b5898e34853f2af6baaa16f6f.tar.bz2
poezio-b803db7ff67bea7b5898e34853f2af6baaa16f6f.tar.xz
poezio-b803db7ff67bea7b5898e34853f2af6baaa16f6f.zip
Make the runtime changes to max_lines_in_memory useful
Diffstat (limited to 'src')
-rw-r--r--src/windows/text_win.py4
1 files changed, 3 insertions, 1 deletions
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