diff options
author | hut <hut@lavabit.com> | 2010-01-21 05:26:20 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-01-21 05:26:20 +0100 |
commit | 22601e2d7f1851649e7977e04c3857e21681ff7e (patch) | |
tree | 12be2aa363372fa46ad2b29fd1fd6cef0bde0662 /ranger | |
parent | 34412eb1918fa51291b2416eba1c00f0b76e7580 (diff) | |
download | ranger-22601e2d7f1851649e7977e04c3857e21681ff7e.tar.gz |
browserview: catch error
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/gui/widgets/browserview.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ranger/gui/widgets/browserview.py b/ranger/gui/widgets/browserview.py index f2798ef8..0f467be2 100644 --- a/ranger/gui/widgets/browserview.py +++ b/ranger/gui/widgets/browserview.py @@ -70,12 +70,18 @@ class BrowserView(Widget, DisplayableContainer): def finalize(self): if self.pager.visible: - self.fm.ui.win.move(self.main_column.y, self.main_column.x) + try: + self.fm.ui.win.move(self.main_column.y, self.main_column.x) + except: + pass 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) + try: + self.fm.ui.win.move(y, x) + except: + pass def _draw_bookmarks(self): self.need_clear = True |