Selaa lähdekoodia

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
Jan Edmund Lazo 6 vuotta sitten
vanhempi
sitoutus
96046c01c3
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      plug.vim

+ 1 - 1
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