Skip to content

Commit

Permalink
polish g:asyncrun_show_time option
Browse files Browse the repository at this point in the history
  • Loading branch information
skywind3000 committed Oct 11, 2022
1 parent ac583ec commit eae766d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugin/asyncrun.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
" Maintainer: skywind3000 (at) gmail.com, 2016-2022
" Homepage: https://github.com/skywind3000/asyncrun.vim
"
" Last Modified: 2022/10/12 00:27
" Last Modified: 2022/10/12 00:33
"
" Run shell command in background and output to quickfix:
" :AsyncRun[!] [options] {cmd} ...
Expand Down Expand Up @@ -865,10 +865,10 @@ function! s:AsyncRun_Job_Start(cmd)
if exists('g:asyncrun_show_time')
let t = g:asyncrun_show_time
let format = ''
if (type(t) == type('')) && t != ''
if type(t) == type('')
let format = t
elseif (type(t) == type(0)) && t != 0
let format = '%Y/%m/%d %T'
elseif type(t) == type(0)
let format = (t != 0)? '%Y/%m/%d %T' : ''
endif
if format != ''
let t = strftime(format, s:async_start)
Expand Down

0 comments on commit eae766d

Please sign in to comment.