Skip to content

Commit

Permalink
-reuse=0 can be used in split terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
skywind3000 committed Mar 22, 2020
1 parent ccd83bd commit f947a2e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plugin/asyncrun.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
" Maintainer: skywind3000 (at) gmail.com, 2016, 2017, 2018, 2019, 2020
" Homepage: http://www.vim.org/scripts/script.php?script_id=5431
"
" Last Modified: 2020/03/22 15:54
" Last Modified: 2020/03/22 16:00
"
" Run shell command in background and output to quickfix:
" :AsyncRun[!] [options] {cmd} ...
Expand Down Expand Up @@ -1246,9 +1246,6 @@ function! s:start_in_terminal(opts)
endif
endif
endif
if get(a:opts, 'reuse', 1) == 0
let avail = -1
endif
endfor
let focus = get(a:opts, 'focus', 1)
if pos ==? 'tab'
Expand Down Expand Up @@ -1307,7 +1304,7 @@ function! s:start_in_terminal(opts)
keepalt noautocmd windo call s:save_restore_view(0)
keepalt noautocmd call win_gotoid(uid)
let origin = win_getid()
if avail < 0
if avail < 0 || get(a:opts, 'reuse', 1) == 0
let rows = get(a:opts, 'rows', '')
let cols = get(a:opts, 'cols', '')
if pos == 'top'
Expand Down

0 comments on commit f947a2e

Please sign in to comment.