diff options
| author | Adam Stankiewicz <sheerun@sher.pl> | 2017-09-27 19:57:29 +0200 |
|---|---|---|
| committer | Adam Stankiewicz <sheerun@sher.pl> | 2017-09-27 19:57:29 +0200 |
| commit | 8b3418cab8eb5267b3a5743e4d5fe5f698d48bc8 (patch) | |
| tree | 125734ac66307a962eeda16283355dde0d0fbd2e /compiler/typescript.vim | |
| parent | 9bfde7574aa89a91b80ed9c993fc000cfc11aae7 (diff) | |
| download | vim-polyglot-8b3418cab8eb5267b3a5743e4d5fe5f698d48bc8.tar.gz vim-polyglot-8b3418cab8eb5267b3a5743e4d5fe5f698d48bc8.zip | |
Update
Diffstat (limited to 'compiler/typescript.vim')
| -rw-r--r-- | compiler/typescript.vim | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/compiler/typescript.vim b/compiler/typescript.vim index b4137943..9ba313fe 100644 --- a/compiler/typescript.vim +++ b/compiler/typescript.vim @@ -17,8 +17,18 @@ if exists(":CompilerSet") != 2 command! -nargs=* CompilerSet setlocal <args> endif -let &l:makeprg = g:typescript_compiler_binary . ' ' . g:typescript_compiler_options . ' $* %' +let s:cpo_save = &cpo +set cpo-=C + +execute 'CompilerSet makeprg=' + \ . escape(g:typescript_compiler_binary, ' ') + \ . '\ ' + \ . escape(g:typescript_compiler_options, ' ') + \ . '\ $*\ %' CompilerSet errorformat=%+A\ %#%f\ %#(%l\\\,%c):\ %m,%C%m +let &cpo = s:cpo_save +unlet s:cpo_save + endif |
