Skip to content

Commit

Permalink
not use empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Milly committed Mar 1, 2015
1 parent 3f47f06 commit 75f4aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/unite/filters.vim
Expand Up @@ -222,7 +222,7 @@ function! unite#filters#vim_filter_patterns(candidates, patterns, whites) "{{{
let white = join(a:whites, '\|')
return filter(a:candidates,
\ "'./'.get(v:val, 'action__path', v:val.word) !~? pattern"
\ .(empty(white) ? "" : "|| './'.get(v:val, 'action__path', v:val.word) =~? white"))
\ .(white == "" ? "" : "|| './'.get(v:val, 'action__path', v:val.word) =~? white"))
endfunction"}}}

function! unite#filters#globs2patterns(globs) "{{{
Expand Down

0 comments on commit 75f4aed

Please sign in to comment.