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