From 22601e2d7f1851649e7977e04c3857e21681ff7e Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 21 Jan 2010 05:26:20 +0100 Subject: browserview: catch error --- ranger/gui/widgets/browserview.py | 10 ++++++++-- 1 file 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 -- cgit 1.4.1-2-gfad0