Skip to content

Commit

Permalink
Fix a bug with DCD import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
idanarye committed Jul 19, 2015
1 parent b7156f5 commit c6cc658
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions autoload/dutyl/dcd.vim
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@ function! s:registerImportPaths(importPaths) abort
endfunction

function! dutyl#dcd#startServer() abort
let l:args=[]
try
let l:args=map(dutyl#core#requireFunctions('importPaths').importPaths(),
\'"-I".v:val')
catch "Ignore errors and simply don't use them
let l:args=[]
for l:path in dutyl#core#requireFunctions('importPaths').importPaths()
call add(l:args,'-I')
call add(l:args,l:path)
endfor
catch
"Ignore errors and simply don't use import paths
endtry
call dutyl#core#runToolInBackground('dcd-server',l:args)
endfunction
Expand Down
2 changes: 1 addition & 1 deletion doc/dutyl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Author: Idan Arye <https://github.com/idanarye/>
License: Same terms as Vim itself (see |license|)

Version: 1.5.1
Version: 1.5.2

INTRODUCTION *dutyl*

Expand Down

0 comments on commit c6cc658

Please sign in to comment.