diff options
-rw-r--r-- | ranger/gui/widgets/pager.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/gui/widgets/pager.py b/ranger/gui/widgets/pager.py index bff30c55..64444064 100644 --- a/ranger/gui/widgets/pager.py +++ b/ranger/gui/widgets/pager.py @@ -170,9 +170,11 @@ class Pager(Widget): if isinstance(source, str): self.source_is_stream = False self.lines = source.splitlines() + self.max_width = max(len(line) for line in self.lines) elif hasattr(source, '__getitem__'): self.source_is_stream = False self.lines = source + self.max_width = max(len(line) for line in source) elif hasattr(source, 'readline'): self.source_is_stream = True self.lines = [] |