Skip to content

Commit 4261fa9

Browse files
author
skywind3000
committed
Update asyncrun.vim script to write files silently to avoid displaying unnecessary messages. Also, update the version to 2.12.6.
1 parent 014e2e2 commit 4261fa9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plugin/asyncrun.vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Maintainer: skywind3000 (at) gmail.com, 2016-2024
44
" Homepage: https://github.com/skywind3000/asyncrun.vim
55
"
6-
" Last Modified: 2024/03/23 00:49
6+
" Last Modified: 2024/05/14 03:50
77
"
88
" Run shell command in background and output to quickfix:
99
" :AsyncRun[!] [options] {cmd} ...
@@ -1041,7 +1041,7 @@ function! asyncrun#script_write(command, pause)
10411041
let tmpname = fnamemodify(tempname(), ':h') . '/asyncrun.sh'
10421042
endif
10431043
if v:version >= 700
1044-
call writefile(lines, tmpname)
1044+
silent! call writefile(lines, tmpname)
10451045
else
10461046
exe 'redir ! > '.fnameescape(tmpname)
10471047
for line in lines
@@ -2305,7 +2305,7 @@ endfunc
23052305
" asyncrun - version
23062306
"----------------------------------------------------------------------
23072307
function! asyncrun#version()
2308-
return '2.12.5'
2308+
return '2.12.6'
23092309
endfunc
23102310

23112311

@@ -2392,7 +2392,7 @@ function! s:program_msys(opts)
23922392
let flag = ' --login ' . (get(a:opts, 'inter', '')? '-i' : '')
23932393
let text = s:shellescape(bash) . flag . ' "' . path . '"'
23942394
let lines += ['call ' . text . "\r"]
2395-
call writefile(lines, tmpname)
2395+
silent! call writefile(lines, tmpname)
23962396
let command = a:opts.cmd
23972397
let names = ['FILEPATH', 'FILENAME', 'FILEDIR', 'FILENOEXT']
23982398
let names += ['PATHNOEXT', 'FILEEXT', 'FILETYPE', 'RELDIR']
@@ -2410,7 +2410,7 @@ function! s:program_msys(opts)
24102410
let cwd = asyncrun#path_win2unix(getcwd(), mount)
24112411
let lines += ["cd '" . cwd . "'"]
24122412
let lines += [command]
2413-
call writefile(lines, script)
2413+
silent! call writefile(lines, script)
24142414
return tmpname
24152415
endfunc
24162416

0 commit comments

Comments
 (0)