forked from luna/vim-rana-local
temporarily overwrite shell to fix #55
This commit is contained in:
parent
6816edd140
commit
be69fd223d
|
@ -314,6 +314,12 @@ let s:VERSION = '6.0.1'
|
||||||
let cmd = cmd + ['--extra-heartbeats']
|
let cmd = cmd + ['--extra-heartbeats']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" overwrite shell
|
||||||
|
let [sh, shellcmdflag, shrd] = [&shell, &shellcmdflag, &shellredir]
|
||||||
|
if !s:IsWindows()
|
||||||
|
set shell=sh shellredir=>%s\ 2>&1
|
||||||
|
endif
|
||||||
|
|
||||||
if s:has_async
|
if s:has_async
|
||||||
let job = job_start([&shell, &shellcmdflag, s:JoinArgs(cmd)], {
|
let job = job_start([&shell, &shellcmdflag, s:JoinArgs(cmd)], {
|
||||||
\ 'stoponexit': '',
|
\ 'stoponexit': '',
|
||||||
|
@ -359,6 +365,9 @@ let s:VERSION = '6.0.1'
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" restore shell
|
||||||
|
let [&shell, &shellcmdflag, &shellredir] = [sh, shellcmdflag, shrd]
|
||||||
|
|
||||||
let s:last_sent = localtime()
|
let s:last_sent = localtime()
|
||||||
|
|
||||||
" need to repaint in case a key was pressed while sending
|
" need to repaint in case a key was pressed while sending
|
||||||
|
|
Loading…
Reference in New Issue