diff options
author | hut <hut@lavabit.com> | 2012-12-04 23:57:51 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2012-12-04 23:57:51 +0100 |
commit | 5e509d9346ed81ee8cd0bac423007dd7db140c3a (patch) | |
tree | c8b05bc757e2a86241882fa0cb15784a8d658b6b /ranger | |
parent | f08a597557eeae1ce94e2a28565b5a0f08cb93eb (diff) | |
parent | 68c7f335128fb6e78fdadecd74eab4dc4f5fd580 (diff) | |
download | ranger-5e509d9346ed81ee8cd0bac423007dd7db140c3a.tar.gz |
Merge branch 'fix_selectfile' of https://github.com/PotatoesMaster/ranger
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/main.py | 6 |
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) |