Commit 3bfe9382 authored by mathieui's avatar mathieui

Wrap yet another curses operation with a lock

parent efa6b425
......@@ -35,6 +35,7 @@ from decorators import refresh_wrapper
from logger import logger
from text_buffer import TextBuffer
from theming import get_theme
from windows import g_lock
......@@ -180,6 +181,7 @@ class Tab(object):
def resize(scr):
with g_lock:
Tab.size = (Tab.height, Tab.width) = scr.getmaxyx()
if Tab.height < MIN_HEIGHT or Tab.width < MIN_WIDTH:
Tab.visible = False
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