summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/gui/widgets/browserview.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/gui/widgets/browserview.py b/ranger/gui/widgets/browserview.py
index 5287ebb6..2aae75da 100644
--- a/ranger/gui/widgets/browserview.py
+++ b/ranger/gui/widgets/browserview.py
@@ -76,10 +76,10 @@ class BrowserView(Widget, DisplayableContainer):
 			except:
 				pass
 		else:
-			x = self.main_column.x
-			y = self.main_column.y + self.main_column.target.pointer\
-					- self.main_column.scroll_begin
 			try:
+				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)
 			except:
 				pass