diff options
-rw-r--r-- | ranger/actions.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/actions.py b/ranger/actions.py index 62b55b81..597e2699 100644 --- a/ranger/actions.py +++ b/ranger/actions.py @@ -182,7 +182,10 @@ class Actions(EnvironmentAware, SettingsAware): return pager = self.ui.open_pager() - pager.set_source(self.log) + if self.log: + pager.set_source(["Message Log:"] + list(self.log)) + else: + pager.set_source(["Message Log:", "No messages!"]) def display_file(self): if not hasattr(self.ui, 'open_embedded_pager'): |