Skip to content

Commit

Permalink
s:force_cmdexe(): let &shell=$COMSPEC (#44)
Browse files Browse the repository at this point in the history
ref #40
  • Loading branch information
prabirshrestha authored and justinmk committed Jan 10, 2018
1 parent ab012ce commit 7b2177d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/gtfo/open.vim
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ endf
func! s:force_cmdexe() abort
if &shell !~? "cmd" || &shellslash
let s:shell=&shell | let s:shslash=&shellslash | let s:shcmdflag=&shellcmdflag
set shell=$COMSPEC noshellslash shellcmdflag=/c
let &shell=$COMSPEC
set noshellslash shellcmdflag=/c
endif
endf
func! s:restore_shell() abort
Expand Down

0 comments on commit 7b2177d

Please sign in to comment.