Skip to content

Commit d6cbb8b

Browse files
author
skywind3000
committed
update 2.2.9
1 parent 634e765 commit d6cbb8b

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ See: [Cooperate with famous plugins](https://github.com/skywind3000/asyncrun.vim
364364

365365
## History
366366

367-
- 2.2.8 (2020-02-10): new terminal mode options: `-safe=1`, `-listed=0` and `-reuse`.
367+
- 2.2.9 (2020-02-10): new terminal mode options: `-safe=1`, `-listed=0` and `-reuse`.
368368
- 2.2.6 (2020-02-06): new: parameter `-hidden` when using `-mode=term` to set `bufhidden` to `hidden`.
369369
- 2.2.5 (2020-02-05): more safe to start a terminal.
370370
- 2.2.4 (2020-02-05): exit when starting terminal failed in current window with `-pos=curwin`.

plugin/asyncrun.vim

Lines changed: 6 additions & 5 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/02/10 05:50
6+
" Last Modified: 2020/02/10 06:12
77
"
88
" Run shell command in background and output to quickfix:
99
" :AsyncRun[!] [options] {cmd} ...
@@ -395,7 +395,7 @@ function! s:AsyncRun_Job_Update(count)
395395
let &l:efm = s:async_info.errorformat
396396
let &g:efm = s:async_info.errorformat
397397
endif
398-
let l:raw = (s:async_efm == '')? 1 : 0
398+
let l:raw = (&efm == '')? 1 : 0
399399
if s:async_info.raw == 1
400400
let l:raw = 1
401401
endif
@@ -1089,7 +1089,7 @@ function! s:start_in_terminal(opts)
10891089
endif
10901090
if get(a:opts, 'safe', get(g:, 'asyncrun_term_safe', 0)) != 0
10911091
let command = s:ScriptWrite(a:opts.command, 0)
1092-
" let shell = ''
1092+
let shell = ''
10931093
endif
10941094
let avail = -1
10951095
for ii in range(winnr('$'))
@@ -1257,7 +1257,7 @@ function! s:run(opts)
12571257
let l:mode = get(l:modemap, l:mode, l:mode)
12581258

12591259
" alias "-mode=raw" to "-mode=async -raw=1"
1260-
if l:mode == 'raw'
1260+
if type(l:mode) == type('') && l:mode == 'raw'
12611261
let l:mode = 0
12621262
let l:opts.raw = 1
12631263
endif
@@ -1584,6 +1584,7 @@ function! asyncrun#run(bang, opts, args, ...)
15841584
let l:opts.macros = l:macros
15851585
let l:opts.mode = get(l:opts, 'mode', g:asyncrun_mode)
15861586
let l:opts.errorformat = get(l:opts, 'errorformat', &errorformat)
1587+
echo l:opts.errorformat
15871588
let s:async_scroll = (a:bang == '!')? 0 : 1
15881589

15891590
" check if need to save
@@ -1637,7 +1638,7 @@ endfunc
16371638
" asyncrun -version
16381639
"----------------------------------------------------------------------
16391640
function! asyncrun#version()
1640-
return '2.2.8'
1641+
return '2.2.9'
16411642
endfunc
16421643

16431644

0 commit comments

Comments
 (0)