@@ -48,7 +48,7 @@ function! EditFiles(cmd)
4848 try
4949 if filereadable (s: choice_file_path )
5050 for f in readfile (s: choice_file_path )
51- exec a: cmd . split (f , getcwd () . ' /' )[0 ]
51+ exec a: cmd . ' ' . split (f , getcwd () . ' /' )[0 ]
5252 endfor
5353 call delete (s: choice_file_path )
5454 endif
@@ -86,20 +86,20 @@ endif
8686
8787" For backwards-compatibility (deprecated)
8888if exists (' g:ranger_open_new_tab' ) && g: ranger_open_new_tab
89- let s: default_edit_cmd= ' tabedit '
89+ let s: default_edit_cmd= ' tabedit'
9090else
91- let s: default_edit_cmd= ' edit '
91+ let s: default_edit_cmd= ' edit'
9292endif
9393
94- command ! RangerCurrentFile call OpenRangerIn (" %" , s: default_edit_cmd )
94+ command ! RangerCurrentFile call OpenRangerIn (" %" , s: default_edit_cmd )
9595command ! RangerCurrentDirectory call OpenRangerIn (" %:p:h" , s: default_edit_cmd )
96- command ! RangerWorkingDirectory call OpenRangerIn (" ." , s: default_edit_cmd )
96+ command ! RangerWorkingDirectory call OpenRangerIn (" ." , s: default_edit_cmd )
9797command ! Ranger RangerCurrentFile
9898
9999" To open the selected file in a new tab
100- command ! RangerCurrentFileNewTab call OpenRangerIn (" %" , ' tabedit ' )
101- command ! RangerCurrentDirectoryNewTab call OpenRangerIn (" %:p:h" , ' tabedit ' )
102- command ! RangerWorkingDirectoryNewTab call OpenRangerIn (" ." , ' tabedit ' )
100+ command ! RangerCurrentFileNewTab call OpenRangerIn (" %" , ' tabedit' )
101+ command ! RangerCurrentDirectoryNewTab call OpenRangerIn (" %:p:h" , ' tabedit' )
102+ command ! RangerWorkingDirectoryNewTab call OpenRangerIn (" ." , ' tabedit' )
103103command ! RangerNewTab RangerCurrentDirectoryNewTab
104104
105105" For retro-compatibility
0 commit comments