|
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/02/10 05:50 |
| 6 | +" Last Modified: 2020/02/10 06:12 |
7 | 7 | "
|
8 | 8 | " Run shell command in background and output to quickfix:
|
9 | 9 | " :AsyncRun[!] [options] {cmd} ...
|
@@ -395,7 +395,7 @@ function! s:AsyncRun_Job_Update(count)
|
395 | 395 | let &l:efm = s:async_info.errorformat
|
396 | 396 | let &g:efm = s:async_info.errorformat
|
397 | 397 | endif
|
398 |
| - let l:raw = (s:async_efm == '')? 1 : 0 |
| 398 | + let l:raw = (&efm == '')? 1 : 0 |
399 | 399 | if s:async_info.raw == 1
|
400 | 400 | let l:raw = 1
|
401 | 401 | endif
|
@@ -1089,7 +1089,7 @@ function! s:start_in_terminal(opts)
|
1089 | 1089 | endif
|
1090 | 1090 | if get(a:opts, 'safe', get(g:, 'asyncrun_term_safe', 0)) != 0
|
1091 | 1091 | let command = s:ScriptWrite(a:opts.command, 0)
|
1092 |
| - " let shell = '' |
| 1092 | + let shell = '' |
1093 | 1093 | endif
|
1094 | 1094 | let avail = -1
|
1095 | 1095 | for ii in range(winnr('$'))
|
@@ -1257,7 +1257,7 @@ function! s:run(opts)
|
1257 | 1257 | let l:mode = get(l:modemap, l:mode, l:mode)
|
1258 | 1258 |
|
1259 | 1259 | " alias "-mode=raw" to "-mode=async -raw=1"
|
1260 |
| - if l:mode == 'raw' |
| 1260 | + if type(l:mode) == type('') && l:mode == 'raw' |
1261 | 1261 | let l:mode = 0
|
1262 | 1262 | let l:opts.raw = 1
|
1263 | 1263 | endif
|
@@ -1584,6 +1584,7 @@ function! asyncrun#run(bang, opts, args, ...)
|
1584 | 1584 | let l:opts.macros = l:macros
|
1585 | 1585 | let l:opts.mode = get(l:opts, 'mode', g:asyncrun_mode)
|
1586 | 1586 | let l:opts.errorformat = get(l:opts, 'errorformat', &errorformat)
|
| 1587 | + echo l:opts.errorformat |
1587 | 1588 | let s:async_scroll = (a:bang == '!')? 0 : 1
|
1588 | 1589 |
|
1589 | 1590 | " check if need to save
|
@@ -1637,7 +1638,7 @@ endfunc
|
1637 | 1638 | " asyncrun -version
|
1638 | 1639 | "----------------------------------------------------------------------
|
1639 | 1640 | function! asyncrun#version()
|
1640 |
| - return '2.2.8' |
| 1641 | + return '2.2.9' |
1641 | 1642 | endfunc
|
1642 | 1643 |
|
1643 | 1644 |
|
|
0 commit comments