X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=vim%2Fplugin%2Fnotmuch.vim;h=8d5d1c34e377aca92680483ac55f091eb63a93b0;hp=7b49015c4f7891a9e3c0b63615602fd894dd8ff7;hb=eb80315d5a191569c2a9445e55bec196596ef2b0;hpb=6b9aa725ad2551d49b5ad4b065fdefae1cc4a364 diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 7b49015c..8d5d1c34 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -1186,13 +1186,16 @@ function! s:NM_run(args) call map(words, 's:NM_shell_escape(v:val)') let cmd = g:notmuch_cmd . ' ' . join(words) . '< /dev/null' - let start = reltime() - let out = system(cmd) - let err = v:shell_error - let delta = reltime(start) - if exists('g:notmuch_debug') && g:notmuch_debug + let start = reltime() + let out = system(cmd) + let err = v:shell_error + let delta = reltime(start) + echo printf('[%s] {%s} %s', reltimestr(delta), string(err), string(cmd)) + else + let out = system(cmd) + let err = v:shell_error endif if err