mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
vim: run(): optimize non-debug path
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
parent
6b9aa725ad
commit
eb80315d5a
1 changed files with 8 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue