diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2013-01-30 15:42:23 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2013-01-30 15:45:15 +0000 |
commit | 0155c5ba8ee6f26826f4a4e6ec083d360317d40d (patch) | |
tree | ed03a97c2f4021b3717f8c67c7bd88e25393c44b | |
parent | 22b0170fd6176af78fc8d89172cf1ad837bd09bf (diff) |
make sure urwid keeps track of updated TERM size
... after external processes terminate.
fixes #566
-rw-r--r-- | alot/commands/globals.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py index 7cdf401e..1cf78ca4 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -243,6 +243,11 @@ class ExternalCommand(Command): ui.mainloop.screen.stop() ret = thread_code() ui.mainloop.screen.start() + + # make sure urwid renders its canvas at the correct size + ui.mainloop.screen_size = None + ui.mainloop.draw_screen() + afterwards(ret) |