summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-06-09 17:12:39 +0200
committermathieui <mathieui@mathieui.net>2013-06-09 17:12:39 +0200
commit2ab2eaf269b1dff5697d9c591325fe7555dca76e (patch)
tree83b41ecc7e32595d7976208815dfa852aa34535f
parentd5ae6966f96bdd1f712584488a4563f95af6defc (diff)
downloadpoezio-2ab2eaf269b1dff5697d9c591325fe7555dca76e.tar.gz
poezio-2ab2eaf269b1dff5697d9c591325fe7555dca76e.tar.bz2
poezio-2ab2eaf269b1dff5697d9c591325fe7555dca76e.tar.xz
poezio-2ab2eaf269b1dff5697d9c591325fe7555dca76e.zip
Lock on one forgotten curses operation
-rw-r--r--src/core.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py
index 28154241..f9d7bda2 100644
--- a/src/core.py
+++ b/src/core.py
@@ -1301,7 +1301,8 @@ class Core(object):
# of the screen that the can occupy, and we draw the tab list
# on the left remaining space
if config.get('enable_vertical_tab_list', 'false') == 'true':
- scr = self.stdscr.subwin(0, config.get('vertical_tab_list_size', 20))
+ with g_lock:
+ scr = self.stdscr.subwin(0, config.get('vertical_tab_list_size', 20))
else:
scr = self.stdscr
tabs.Tab.resize(scr)