mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-03 15:21:41 +01:00
vim: make timing info a debug option
This commit is contained in:
parent
76dc061de3
commit
553637313b
1 changed files with 4 additions and 1 deletions
|
@ -23,6 +23,7 @@
|
||||||
|
|
||||||
let s:notmuch_defaults = {
|
let s:notmuch_defaults = {
|
||||||
\ 'g:notmuch_cmd': 'notmuch' ,
|
\ 'g:notmuch_cmd': 'notmuch' ,
|
||||||
|
\ 'g:notmuch_debug': 0 ,
|
||||||
\
|
\
|
||||||
\ 'g:notmuch_search_newest_first': 1 ,
|
\ 'g:notmuch_search_newest_first': 1 ,
|
||||||
\ 'g:notmuch_search_from_column_width': 20 ,
|
\ 'g:notmuch_search_from_column_width': 20 ,
|
||||||
|
@ -795,7 +796,9 @@ function! s:NM_run(args)
|
||||||
let err = v:shell_error
|
let err = v:shell_error
|
||||||
let delta = reltime(start)
|
let delta = reltime(start)
|
||||||
|
|
||||||
echo printf('[%s] {%s} %s', reltimestr(delta), string(err), string(cmd))
|
if exists('g:notmuch_debug') && g:notmuch_debug
|
||||||
|
echo printf('[%s] {%s} %s', reltimestr(delta), string(err), string(cmd))
|
||||||
|
endif
|
||||||
|
|
||||||
if err
|
if err
|
||||||
echohl Error
|
echohl Error
|
||||||
|
|
Loading…
Reference in a new issue