forked from luna/vim-rana-local
temporarily overwrite shell to fix #55
This commit is contained in:
parent
6816edd140
commit
be69fd223d
1 changed files with 9 additions and 0 deletions
|
@ -314,6 +314,12 @@ let s:VERSION = '6.0.1'
|
|||
let cmd = cmd + ['--extra-heartbeats']
|
||||
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
|
||||
let job = job_start([&shell, &shellcmdflag, s:JoinArgs(cmd)], {
|
||||
\ 'stoponexit': '',
|
||||
|
@ -359,6 +365,9 @@ let s:VERSION = '6.0.1'
|
|||
endif
|
||||
endif
|
||||
|
||||
" restore shell
|
||||
let [&shell, &shellcmdflag, &shellredir] = [sh, shellcmdflag, shrd]
|
||||
|
||||
let s:last_sent = localtime()
|
||||
|
||||
" need to repaint in case a key was pressed while sending
|
||||
|
|
Loading…
Reference in a new issue