diff --git a/autoload/dutyl/dcd.vim b/autoload/dutyl/dcd.vim index 5c54253..688d882 100644 --- a/autoload/dutyl/dcd.vim +++ b/autoload/dutyl/dcd.vim @@ -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 diff --git a/doc/dutyl.txt b/doc/dutyl.txt index 325a1f6..6a3a638 100644 --- a/doc/dutyl.txt +++ b/doc/dutyl.txt @@ -4,7 +4,7 @@ Author: Idan Arye License: Same terms as Vim itself (see |license|) -Version: 1.5.1 +Version: 1.5.2 INTRODUCTION *dutyl*