diff options
author | hut <hut@lavabit.com> | 2010-04-26 10:08:04 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-04-26 21:06:55 +0200 |
commit | 292b447675bff7af2f4221da50b20dc49bbe66b6 (patch) | |
tree | 925ae104e6bb42c99bc5f1a9ff40d245d5ad8cbe | |
parent | 5c7b44ff76786776ee658092ca9242d9c0abc3cc (diff) | |
download | ranger-292b447675bff7af2f4221da50b20dc49bbe66b6.tar.gz |
widgets.pager: Fixed off-by-one error for boundaries
-rw-r--r-- | ranger/gui/widgets/pager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/gui/widgets/pager.py b/ranger/gui/widgets/pager.py index 00f3ec78..c0bc98b4 100644 --- a/ranger/gui/widgets/pager.py +++ b/ranger/gui/widgets/pager.py @@ -116,7 +116,7 @@ class Pager(Widget): maximum=self._get_max_width(), current=self.startx, pagesize=self.wid, - offset=-self.wid) + offset=-self.wid + 1) if direction.vertical(): if self.source_is_stream: self._get_line(self.scroll_begin + self.hei * 2) @@ -126,7 +126,7 @@ class Pager(Widget): maximum=len(self.lines), current=self.scroll_begin, pagesize=self.hei, - offset=-self.hei) + offset=-self.hei + 1) def press(self, key): self.env.keymanager.use_context(self.embedded and 'embedded_pager' or 'pager') |