diff options
-rw-r--r-- | ranger/core/actions.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index ea4b54eb..f6c41447 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -828,6 +828,9 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): pager = self.ui.get_pager() path = file.realpath + if not path: + return None + if self.settings.preview_images and file.image: pager.set_image(path) return None |