We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4320120 commit 883dd15Copy full SHA for 883dd15
1 file changed
autoload/nnn.vim
@@ -90,14 +90,14 @@ function! s:eval_temp_file(opts)
90
if (type(l:Cmd) == v:t_func)
91
call l:Cmd(l:names)
92
else
93
- " Remove directories and missing files
+ " Remove directories and unreadable files
94
call filter(l:names, {_, val -> !isdirectory(val) && filereadable(val) })
95
call reverse(l:names)
96
" Edit the first item.
97
- execute 'silent' l:Cmd fnameescape(fnamemodify(l:names[0], ':.'))
+ execute(join([l:Cmd,fnameescape(fnamemodify(l:names[0], ':.'))], ' '))
98
" Add any remaining items to the arg list/buffer list.
99
for l:name in l:names[1:]
100
- execute 'silent argadd' fnameescape(fnamemodify(l:name, ':.'))
+ execute(join(['argadd', fnameescape(fnamemodify(l:name, ':.'))], ' '))
101
endfor
102
endif
103
0 commit comments