summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorEmanuel Guevel <guevel.emanuel@gmail.com>2012-11-20 19:50:15 +0100
committerEmanuel Guevel <guevel.emanuel@gmail.com>2012-11-20 19:50:15 +0100
commit68c7f335128fb6e78fdadecd74eab4dc4f5fd580 (patch)
tree7e21a455588eed4d7059fe86b791320cb94360bc
parent721488ce49f1b6520f7c367cb5799c2dc85af935 (diff)
downloadranger-68c7f335128fb6e78fdadecd74eab4dc4f5fd580.tar.gz
core.main: fix --selectfile argument
-rw-r--r--ranger/core/main.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py
index c3a3d76b..eda11b5b 100644
--- a/ranger/core/main.py
+++ b/ranger/core/main.py
@@ -108,13 +108,13 @@ def main():
 			from ranger.ext import curses_interrupt_handler
 			curses_interrupt_handler.install_interrupt_handler()
 
-		if arg.selectfile:
-			fm.select_file(arg.selectfile)
-
 		# Run the file manager
 		fm.initialize()
 		fm.ui.initialize()
 
+		if arg.selectfile:
+			fm.select_file(arg.selectfile)
+
 		if arg.cmd:
 			for command in arg.cmd:
 				fm.execute_console(command)