Skip to content

Commit 2ad5b46

Browse files
author
skywind3000
committed
2.7.8: expose asyncrun#script_write interface
1 parent 5262561 commit 2ad5b46

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

plugin/asyncrun.vim

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Maintainer: skywind3000 (at) gmail.com, 2016, 2017, 2018, 2019, 2020
44
" Homepage: http://www.vim.org/scripts/script.php?script_id=5431
55
"
6-
" Last Modified: 2020/12/29 22:16
6+
" Last Modified: 2021/01/12 19:44
77
"
88
" Run shell command in background and output to quickfix:
99
" :AsyncRun[!] [options] {cmd} ...
@@ -903,7 +903,7 @@ function! s:ExtractOpt(command)
903903
endfunc
904904

905905
" write script to a file and return filename
906-
function! s:ScriptWrite(command, pause)
906+
function! asyncrun#script_write(command, pause)
907907
let tmpname = fnamemodify(tempname(), ':h') . '\asyncrun.cmd'
908908
let command = a:command
909909
if s:asyncrun_windows != 0
@@ -940,6 +940,12 @@ function! s:ScriptWrite(command, pause)
940940
return tmpname
941941
endfunc
942942

943+
" write script to a file and return filename
944+
function! s:ScriptWrite(command, pause)
945+
return asyncrun#script_write(a:command, a:pause)
946+
endfunc
947+
948+
943949
" full file name
944950
function! asyncrun#fullname(f)
945951
let f = a:f
@@ -1862,7 +1868,7 @@ endfunc
18621868
" asyncrun - version
18631869
"----------------------------------------------------------------------
18641870
function! asyncrun#version()
1865-
return '2.7.7'
1871+
return '2.7.8'
18661872
endfunc
18671873

18681874

0 commit comments

Comments
 (0)