diff options
author | Marcel Partap <mpartap@gmx.net> | 2019-08-07 16:37:33 +0200 |
---|---|---|
committer | Marcel Partap <mpartap@gmx.net> | 2019-08-07 18:14:12 +0200 |
commit | 40350d99009cbb537e3a8e6d13ca8f37cfc3a73b (patch) | |
tree | fb7e8aeed1b9211f971641d92b3a45d204153f2f | |
parent | 3e27a680f82f759eebd90a20a4920d4984413d6b (diff) | |
download | ranger-40350d99009cbb537e3a8e6d13ca8f37cfc3a73b.tar.gz |
Fix fluke command line & status bar position error
When setting f.e. status bar position fails, it will be retried after triggering a same-size resize event. Fixes #1646
-rw-r--r-- | ranger/gui/displayable.py | 6 |
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 |