diff options
author | hut <hut@lavabit.com> | 2010-12-21 23:26:06 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-12-21 23:26:22 +0100 |
commit | d7fa37ed92be945f33cc071522d6c88712e04d92 (patch) | |
tree | ffe94472e8d9d16ff66d0a053eb0ec063c8875d3 /ranger | |
parent | 50a676b48ea40f7dd39e92cbce0b354bbc663f00 (diff) | |
download | ranger-d7fa37ed92be945f33cc071522d6c88712e04d92.tar.gz |
widgets.pager: Fixed horizontal scrolling
Diffstat (limited to 'ranger')
-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 = [] |