Mercurial > vim-crosoft
diff autoload/vimcrosoft.vim @ 6:376f3371c311
Save all unsaved buffers before building.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 24 Sep 2020 22:54:02 -0700 |
parents | 5d2c0db51914 |
children | ff4590b2503a |
line wrap: on
line diff
--- a/autoload/vimcrosoft.vim Thu Oct 24 11:16:11 2019 -0700 +++ b/autoload/vimcrosoft.vim Thu Sep 24 22:54:02 2020 -0700 @@ -283,6 +283,10 @@ endfunction function! vimcrosoft#build_sln(target) abort + if g:vimcrosoft_save_all_on_build + wall + endif + let l:args = [] if !empty(a:target) call add(l:args, '/t:'.a:target) @@ -291,6 +295,10 @@ endfunction function! vimcrosoft#build_project(projname, target, only) abort + if g:vimcrosoft_save_all_on_build + wall + endif + let l:projname = !empty(a:projname) ? a:projname : g:vimcrosoft_active_project if empty(l:projname) call vimcrosoft#error("No project name given, and no active project set.")