summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2016-04-06 23:48:08 +0200
committerhut <hut@lepus.uberspace.de>2016-04-06 23:48:08 +0200
commit1869ebdfe44dccc9978fde92ffa5a27258d91e0c (patch)
tree6f8a1e2aecae0856c2418be1a09564c35ad6a931
parent65b9bcea56c80d0b242546600452f9caf934f059 (diff)
downloadranger-1869ebdfe44dccc9978fde92ffa5a27258d91e0c.tar.gz
gui.ui: redraw ui when toggling viewmode
-rw-r--r--ranger/gui/ui.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py
index 14d6f247..e5833839 100644
--- a/ranger/gui/ui.py
+++ b/ranger/gui/ui.py
@@ -441,6 +441,7 @@ class UI(DisplayableContainer):
                     resize = True
 
                 self.browser = self._viewmode_to_class(value)(self.win)
+                self.redraw_window()
                 self.add_child(self.browser)
                 if resize:
                     self.browser.resize(*old_size)