mirror of
https://github.com/junegunn/fzf.git
synced 2025-07-30 19:52:00 -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()
|
||||
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
|
||||
|
Reference in New Issue
Block a user