mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 19:43:47 -05:00
@@ -186,8 +186,10 @@ function! gitgutter#utility#use_known_shell() abort
|
|||||||
if has('unix')
|
if has('unix')
|
||||||
let s:shell = &shell
|
let s:shell = &shell
|
||||||
let s:shellcmdflag = &shellcmdflag
|
let s:shellcmdflag = &shellcmdflag
|
||||||
|
let s:shellredir = &shellredir
|
||||||
set shell=/bin/sh
|
set shell=/bin/sh
|
||||||
set shellcmdflag=-c
|
set shellcmdflag=-c
|
||||||
|
set shellredir=>%s\ 2>&1
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
@@ -195,5 +197,6 @@ function! gitgutter#utility#restore_shell() abort
|
|||||||
if has('unix')
|
if has('unix')
|
||||||
let &shell = s:shell
|
let &shell = s:shell
|
||||||
let &shellcmdflag = s:shellcmdflag
|
let &shellcmdflag = s:shellcmdflag
|
||||||
|
let &shellredir = s:shellredir
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user