Skip to content
Myr

Ignore empty file 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 311c4a3 · Browse files · 1 file+4 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+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:plugin/fzf.vim+4 added-1 removed
27 unmodified lines
28 let tf = tempname()29 let prefix = exists('g:fzf_command') ? g:fzf_command.'|' : ''30 execute "silent !".prefix."/usr/bin/env ruby ".s:exec." ".a:args." > ".tf31 if !v:shell_error32 execute 'silent e '.join(readfile(tf), '')32 let file = join(readfile(tf), '')33 if !empty(file)34 execute 'silent e '.file35 endif36 endif37 finally38 silent! call delete(tf)39 redraw!
5 unmodified lines