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