aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/plugin/notmuch.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/plugin/notmuch.vim')
-rw-r--r--vim/plugin/notmuch.vim9
1 files changed, 8 insertions, 1 deletions
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