Skip to content

Commit eae766d

Browse files
author
skywind3000
committed
polish g:asyncrun_show_time option
1 parent ac583ec commit eae766d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugin/asyncrun.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Maintainer: skywind3000 (at) gmail.com, 2016-2022
44
" Homepage: https://github.com/skywind3000/asyncrun.vim
55
"
6-
" Last Modified: 2022/10/12 00:27
6+
" Last Modified: 2022/10/12 00:33
77
"
88
" Run shell command in background and output to quickfix:
99
" :AsyncRun[!] [options] {cmd} ...
@@ -865,10 +865,10 @@ function! s:AsyncRun_Job_Start(cmd)
865865
if exists('g:asyncrun_show_time')
866866
let t = g:asyncrun_show_time
867867
let format = ''
868-
if (type(t) == type('')) && t != ''
868+
if type(t) == type('')
869869
let format = t
870-
elseif (type(t) == type(0)) && t != 0
871-
let format = '%Y/%m/%d %T'
870+
elseif type(t) == type(0)
871+
let format = (t != 0)? '%Y/%m/%d %T' : ''
872872
endif
873873
if format != ''
874874
let t = strftime(format, s:async_start)

0 commit comments

Comments
 (0)