about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/gui/displayable.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ranger/gui/displayable.py b/ranger/gui/displayable.py
index 16cb275f..1c3fb3e4 100644
--- a/ranger/gui/displayable.py
+++ b/ranger/gui/displayable.py
@@ -197,7 +197,11 @@ class Displayable(  # pylint: disable=too-many-instance-attributes
             try:
                 self.win.mvderwin(y, x)
             except curses.error:
-                pass
+                try:
+                    self.win.resize(hei, wid)
+                    self.win.mvderwin(y, x)
+                except curses.error:
+                    pass
 
             self.paryx = self.win.getparyx()
             self.y, self.x = self.paryx