From 96046c01c3a2a2555b9d694322716a7795d614c4 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Mon, 14 Oct 2019 13:38:26 -0400 Subject: [PATCH] Detect WSL (Neovim only) (#887) `has('wsl')` works since Neovim v0.3.0 (https://github.com/neovim/neovim/commit/5d2dd2ebe28c31f223d77355a8f9d40adfb41c82) Fix: https://github.com/junegunn/vim-plug/issues/821 --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index b8a07f1..5c9bd34 100644 --- a/plug.vim +++ b/plug.vim @@ -1036,7 +1036,7 @@ function! s:update_impl(pull, force, args) abort let s:clone_opt = get(g:, 'plug_shallow', 1) ? \ '--depth 1' . (s:git_version_requirement(1, 7, 10) ? ' --no-single-branch' : '') : '' - if has('win32unix') + if has('win32unix') || has('wsl') let s:clone_opt .= ' -c core.eol=lf -c core.autocrlf=input' endif