|
3 | 3 | " Maintainer: skywind3000 (at) gmail.com, 2016, 2017, 2018, 2019, 2020
|
4 | 4 | " Homepage: http://www.vim.org/scripts/script.php?script_id=5431
|
5 | 5 | "
|
6 |
| -" Last Modified: 2020/12/29 22:16 |
| 6 | +" Last Modified: 2021/01/12 19:44 |
7 | 7 | "
|
8 | 8 | " Run shell command in background and output to quickfix:
|
9 | 9 | " :AsyncRun[!] [options] {cmd} ...
|
@@ -903,7 +903,7 @@ function! s:ExtractOpt(command)
|
903 | 903 | endfunc
|
904 | 904 |
|
905 | 905 | " write script to a file and return filename
|
906 |
| -function! s:ScriptWrite(command, pause) |
| 906 | +function! asyncrun#script_write(command, pause) |
907 | 907 | let tmpname = fnamemodify(tempname(), ':h') . '\asyncrun.cmd'
|
908 | 908 | let command = a:command
|
909 | 909 | if s:asyncrun_windows != 0
|
@@ -940,6 +940,12 @@ function! s:ScriptWrite(command, pause)
|
940 | 940 | return tmpname
|
941 | 941 | endfunc
|
942 | 942 |
|
| 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 | + |
943 | 949 | " full file name
|
944 | 950 | function! asyncrun#fullname(f)
|
945 | 951 | let f = a:f
|
@@ -1862,7 +1868,7 @@ endfunc
|
1862 | 1868 | " asyncrun - version
|
1863 | 1869 | "----------------------------------------------------------------------
|
1864 | 1870 | function! asyncrun#version()
|
1865 |
| - return '2.7.7' |
| 1871 | + return '2.7.8' |
1866 | 1872 | endfunc
|
1867 | 1873 |
|
1868 | 1874 |
|
|
0 commit comments