summary refs log tree commit diff stats
diff options
context:
space:
mode:
authormxovd <mxovd@protonmail.com>2018-04-13 21:57:00 +0900
committermxovd <mxovd@protonmail.com>2018-04-13 21:57:00 +0900
commite79d929b7e48f4cc2a1ddcf0b942a46c21b56c13 (patch)
tree2fdd9144b962157e6c0450eef50422216ce849dc
parenta30b5e5b517a04f35e79a41a624aaedf187f6a36 (diff)
downloadranger-e79d929b7e48f4cc2a1ddcf0b942a46c21b56c13.tar.gz
Enter directory before executing command arguments
-rw-r--r--ranger/core/main.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py
index 4adea918..32734442 100644
--- a/ranger/core/main.py
+++ b/ranger/core/main.py
@@ -182,6 +182,7 @@ def main(
             fm.select_file(args.selectfile)
 
         if args.cmd:
+            fm.enter_dir(fm.thistab.path)
             for command in args.cmd:
                 fm.execute_console(command)