summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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 4af9495e..80b2e9a7 100644
--- a/ranger/core/main.py
+++ b/ranger/core/main.py
@@ -110,14 +110,14 @@ 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()
 		ranger.api.hook_init(fm)
 		fm.ui.initialize()
 
+		if arg.selectfile:
+			fm.select_file(arg.selectfile)
+
 		if arg.cmd:
 			for command in arg.cmd:
 				fm.execute_console(command)