aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Abreu Ferreira <raf-ep@gmx.com>2015-05-12 20:45:33 +0100
committerJustin M. Keyes <justinkz@gmail.com>2015-08-28 02:56:06 -0400
commit3901f5987619c5b8b476333c5a864f637a5546d9 (patch)
tree22e9741d62e541773201a8bcd74cc022adc4243f
parenta7ec1a5f502e290f1e7d655ac225219c4d2c510e (diff)
downloadrneovim-3901f5987619c5b8b476333c5a864f637a5546d9.tar.gz
rneovim-3901f5987619c5b8b476333c5a864f637a5546d9.tar.bz2
rneovim-3901f5987619c5b8b476333c5a864f637a5546d9.zip
Windows: restore 'shell', 'shellcmdflags' defaults. #3256
- On Windows the default shell is cmd.exe and the shell flag is /c - vim-patch:0
-rw-r--r--src/nvim/options.lua12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index 89d49028ae..472f1bf7ac 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -2000,7 +2000,11 @@ return {
vi_def=true,
expand=true,
varname='p_sh',
- defaults={if_true={vi="sh"}}
+ defaults={
+ condition='WIN32',
+ if_true={vi="cmd.exe"},
+ if_false={vi="sh"}
+ }
},
{
full_name='shellcmdflag', abbreviation='shcf',
@@ -2008,7 +2012,11 @@ return {
secure=true,
vi_def=true,
varname='p_shcf',
- defaults={if_true={vi="-c"}}
+ defaults={
+ condition='WIN32',
+ if_true={vi="/c"},
+ if_false={vi="-c"}
+ }
},
{
full_name='shellpipe', abbreviation='sp',