changeset 1:953baa4a16bb

Print P4's output when trace is enabled.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 24 Sep 2020 22:48:03 -0700
parents 4aede5f1af45
children 74b2ef146e82
files autoload/p44vim.vim
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/autoload/p44vim.vim	Wed Feb 11 15:03:01 2015 -0800
+++ b/autoload/p44vim.vim	Thu Sep 24 22:48:03 2020 -0700
@@ -20,7 +20,11 @@
     call extend(l:cmd, l:args)
     let l:strcmd = join(map(l:cmd, 'shellescape(v:val)'))
     call s:trace("Running command: ".l:strcmd)
-    silent call system(l:strcmd)
+    let l:cmd_out = system(l:strcmd)
+    if g:p44v_trace
+        call s:trace(l:cmd_out)
+    endif
+    return l:cmd_out
 endfunction
 
 function! s:get_p4_depot_root(path) abort