mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-22 19:09:00 +00:00
The last argument doesn't have to be a path
This commit is contained in:
parent
f28274109f
commit
2540c9062f
@ -31,7 +31,7 @@ function! fzf#run(command, ...)
|
||||
let cwd = getcwd()
|
||||
try
|
||||
let args = copy(a:000)
|
||||
if len(args) > 0
|
||||
if len(args) > 0 && isdirectory(expand(args[-1]))
|
||||
let dir = remove(args, -1)
|
||||
execute 'chdir '.s:escape(dir)
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user