mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-23 11:29:01 +00:00
Ignore empty file path
This commit is contained in:
parent
311c4a36e2
commit
fd2472d11c
@ -29,7 +29,10 @@ function! s:fzf(args)
|
|||||||
let prefix = exists('g:fzf_command') ? g:fzf_command.'|' : ''
|
let prefix = exists('g:fzf_command') ? g:fzf_command.'|' : ''
|
||||||
execute "silent !".prefix."/usr/bin/env ruby ".s:exec." ".a:args." > ".tf
|
execute "silent !".prefix."/usr/bin/env ruby ".s:exec." ".a:args." > ".tf
|
||||||
if !v:shell_error
|
if !v:shell_error
|
||||||
execute 'silent e '.join(readfile(tf), '')
|
let file = join(readfile(tf), '')
|
||||||
|
if !empty(file)
|
||||||
|
execute 'silent e '.file
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
finally
|
finally
|
||||||
silent! call delete(tf)
|
silent! call delete(tf)
|
||||||
|
Loading…
Reference in New Issue
Block a user