X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=vim%2Fplugin%2Fnotmuch.vim;h=57bcdac923da0718d10fcacc83932bed18d14e78;hp=2ddc8160417b5552e77274c057d8819474e658e6;hb=f3d3e74b97ad3d0824e1a9a38c26252b4a0a74a4;hpb=71c9dbb71db5de37d647ca9899e4749be305b622;ds=sidebyside diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 2ddc8160..57bcdac9 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -658,8 +658,15 @@ endfunction function! s:NM_run(args) let cmd = g:notmuch_cmd . ' ' . join(a:args) . '< /dev/null' + + let start = reltime() let out = system(cmd) - if v:shell_error + let err = v:shell_error + let delta = reltime(start) + + echo printf('[%s] {%s} %s', reltimestr(delta), string(err), string(cmd)) + + if err echohl Error echo substitute(out, '\n*$', '', '') echohl None