diff options
author | hut <hut@lavabit.com> | 2010-01-19 20:34:36 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-01-19 20:34:36 +0100 |
commit | 33cb688a37d07e0cc8c4053be46ac3605235468e (patch) | |
tree | c22669ab44fa1dc83244fa09c1b00d234e43e436 /ranger | |
parent | 67388ea82e3fa1e563427a0fd719e41df64b2901 (diff) | |
download | ranger-33cb688a37d07e0cc8c4053be46ac3605235468e.tar.gz |
done #32
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/gui/widgets/browserview.py | 9 | ||||
-rw-r--r-- | ranger/gui/widgets/pager.py | 3 | ||||
-rw-r--r-- | ranger/gui/widgets/taskview.py | 5 |
3 files changed, 17 insertions, 0 deletions
diff --git a/ranger/gui/widgets/browserview.py b/ranger/gui/widgets/browserview.py index 797daa59..f2798ef8 100644 --- a/ranger/gui/widgets/browserview.py +++ b/ranger/gui/widgets/browserview.py @@ -67,6 +67,15 @@ class BrowserView(Widget, DisplayableContainer): self.need_redraw = True self.need_clear = False DisplayableContainer.draw(self) + + def finalize(self): + if self.pager.visible: + self.fm.ui.win.move(self.main_column.y, self.main_column.x) + else: + x = self.main_column.x + y = self.main_column.y + self.main_column.target.pointer\ + - self.main_column.scroll_begin + self.fm.ui.win.move(y, x) def _draw_bookmarks(self): self.need_clear = True diff --git a/ranger/gui/widgets/pager.py b/ranger/gui/widgets/pager.py index 52de9ccf..29e96cc3 100644 --- a/ranger/gui/widgets/pager.py +++ b/ranger/gui/widgets/pager.py @@ -60,6 +60,9 @@ class Pager(Widget): if self.source and self.source_is_stream: self.source.close() + def finalize(self): + self.fm.ui.win.move(self.y, self.x) + def draw(self): if self.old_source != self.source: self.old_source = self.source diff --git a/ranger/gui/widgets/taskview.py b/ranger/gui/widgets/taskview.py index a99a567e..2be61671 100644 --- a/ranger/gui/widgets/taskview.py +++ b/ranger/gui/widgets/taskview.py @@ -77,6 +77,11 @@ class TaskView(Widget, Accumulator): self.color_at(1, 0, self.wid, base_clr, 'error') self.color_reset() + + def finalize(self): + y = self.y + 1 + self.pointer - self.scroll_begin + self.fm.ui.win.move(y, self.x) + def task_remove(self, i=None): if i is None: |