From 0155c5ba8ee6f26826f4a4e6ec083d360317d40d Mon Sep 17 00:00:00 2001 From: Patrick Totzke Date: Wed, 30 Jan 2013 15:42:23 +0000 Subject: make sure urwid keeps track of updated TERM size ... after external processes terminate. fixes #566 --- alot/commands/globals.py | 5 +++++ 1 file changed, 5 insertions(+) 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) -- cgit v1.2.3