Permalink
Browse files

If g:vikitasks#files contains glob patterns, make sure to remove dupl…

…icates
  • Loading branch information...
1 parent e4d47b5 commit 66d95dbc39e5385e9748d6d9a2dae1ecf9ffeec8 @tomtom committed Mar 11, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 autoload/vikitasks.vim
View
@@ -261,6 +261,8 @@ function! vikitasks#Tasks(...) "{{{3
" TLogVAR files
call map(files, 'glob(v:val)')
let files = split(join(files, "\n"), '\n')
+ let files = map(files, 's:CanonicFilename(v:val)')
+ let files = tlib#list#Uniq(files)
" TLogVAR files
if !empty(files)
let qfl = trag#Grep('tasks', 1, files)

0 comments on commit 66d95db

Please sign in to comment.