Handle nested buffering better
This commit is contained in:
parent
c26b6eac57
commit
2edced7ad0
@ -196,9 +196,10 @@ class BTUI:
|
||||
@contextmanager
|
||||
def buffered(self):
|
||||
assert self._btui
|
||||
prev_autoflush = self._autoflush
|
||||
self._autoflush = False
|
||||
yield
|
||||
self._autoflush = True
|
||||
self._autoflush = prev_autoflush
|
||||
self.flush()
|
||||
|
||||
def getkey(self, timeout=None):
|
||||
|
Loading…
Reference in New Issue
Block a user