We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65c3d06 commit de99090Copy full SHA for de99090
src/prompt_toolkit/contrib/telnet/server.py
@@ -164,8 +164,8 @@ def data_received(data: bytes) -> None:
164
def size_received(rows: int, columns: int) -> None:
165
"""TelnetProtocolParser 'size_received' callback"""
166
self.size = Size(rows=rows, columns=columns)
167
- if self.vt100_output is not None:
168
- get_app()._on_resize()
+ if self.vt100_output is not None and self.context:
+ self.context.run(lambda: get_app()._on_resize())
169
170
def ttype_received(ttype: str) -> None:
171
"""TelnetProtocolParser 'ttype_received' callback"""
0 commit comments