diff options
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r-- | ranger/core/actions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 6c9e419b..84f0fdde 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -589,7 +589,7 @@ class Actions( # pylint: disable=too-many-instance-attributes,too-many-public-m def pager_close(self): if self.ui.pager.visible: self.ui.close_pager() - if hasattr(self.ui.browser, 'pager') and self.ui.browser.pager.visible: + if self.ui.browser.pager and self.ui.browser.pager.visible: self.ui.close_embedded_pager() def taskview_open(self): |