summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-06 00:15:38 +0100
committermathieui <mathieui@mathieui.net>2011-11-06 00:15:38 +0100
commite6797c29a5f20b50ed35ef25922596bab047d0f6 (patch)
tree0444b05c478e7b7266ae084379670445272561c6 /src/core.py
parentaf6e5345781381fbfab48552684a2c621989a24d (diff)
downloadpoezio-e6797c29a5f20b50ed35ef25922596bab047d0f6.tar.gz
poezio-e6797c29a5f20b50ed35ef25922596bab047d0f6.tar.bz2
poezio-e6797c29a5f20b50ed35ef25922596bab047d0f6.tar.xz
poezio-e6797c29a5f20b50ed35ef25922596bab047d0f6.zip
Smaller means being insane, and even then, it should’nt bug too much
Fixes #2259
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py
index 5fcdf8a3..ec821cbd 100644
--- a/src/core.py
+++ b/src/core.py
@@ -230,6 +230,9 @@ class Core(object):
return self.information_buffer
def grow_information_win(self, nb=1):
+ if self.information_win_size >= self.current_tab().height -5 or \
+ self.information_win_size+nb >= self.current_tab().height-4:
+ return
if self.information_win_size == 14:
return
self.information_win_size += nb