diff --git a/autoload/latex/latexmk.vim b/autoload/latex/latexmk.vim index 6fdeaaf..f6416e3 100644 --- a/autoload/latex/latexmk.vim +++ b/autoload/latex/latexmk.vim @@ -121,6 +121,7 @@ function! latex#latexmk#compile() " {{{1 let exe.null = 0 if !g:latex_latexmk_continuous && !g:latex_latexmk_background let exe.bg = 0 + let exe.silent = 0 endif let exe.cmd = data.cmds.compile call latex#util#execute(exe) diff --git a/autoload/latex/util.vim b/autoload/latex/util.vim index aaf28c6..8079a14 100644 --- a/autoload/latex/util.vim +++ b/autoload/latex/util.vim @@ -99,6 +99,7 @@ function! latex#util#execute(exe) " {{{1 " " exe.cmd String String that contains the command to run " exe.bg 0 or 1 Run in background or not + " exe.silent 0 or 1 Show output or not " exe.null 0 or 1 Send output to /dev/null " exe.wd String Run command in provided working directory " @@ -111,8 +112,9 @@ function! latex#util#execute(exe) " {{{1 echoerr "Argument error, exe.cmd does not exist!" return endif - let bg = has_key(a:exe, 'bg') ? a:exe.bg : 1 - let null = has_key(a:exe, 'null') ? a:exe.null : 1 + let bg = has_key(a:exe, 'bg') ? a:exe.bg : 1 + let silent = has_key(a:exe, 'silent') ? a:exe.silent : 1 + let null = has_key(a:exe, 'null') ? a:exe.null : 1 " Change directory if wanted if has_key(a:exe, 'wd') @@ -140,7 +142,7 @@ function! latex#util#execute(exe) " {{{1 endif endif - if bg + if silent silent execute cmd else execute cmd