Skip to content

Commit

Permalink
Fix #1227 file source
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jul 1, 2017
1 parent ddbb0df commit ad15f96
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions autoload/unite/sources/file.vim
Expand Up @@ -321,8 +321,7 @@ function! unite#sources#file#_get_files(input, context) abort "{{{

if !is_vimfiler
let files = sort(filter(copy(files),
\ "v:val != '.' && (a:input =~ '/\\.' || v:val !~ '/\\.')
\ && isdirectory(v:val)"), 1) +
\ "v:val != '.' && isdirectory(v:val)"), 1) +
\ sort(filter(copy(files), "!isdirectory(v:val)"), 1)

let s:cache_files[directory] = {
Expand Down

0 comments on commit ad15f96

Please sign in to comment.