Skip to content
Myr

The last argument doesn't have to be a path

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent f282741 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:plugin/fzf.vim+1 added-1 removed
29 unmodified lines
30function! fzf#run(command, ...)31 let cwd = getcwd()32 try33 let args = copy(a:000)34 if len(args) > 034 if len(args) > 0 && isdirectory(expand(args[-1]))35 let dir = remove(args, -1)36 execute 'chdir '.s:escape(dir)37 endif38 let argstr = join(args)
21 unmodified lines