Skip to content

Commit 96046c0

Browse files
authored
Detect WSL (Neovim only) (#887)
`has('wsl')` works since Neovim v0.3.0 (neovim/neovim@5d2dd2e) Fix: #821
1 parent fcfd5b7 commit 96046c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plug.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ function! s:update_impl(pull, force, args) abort
10361036
let s:clone_opt = get(g:, 'plug_shallow', 1) ?
10371037
\ '--depth 1' . (s:git_version_requirement(1, 7, 10) ? ' --no-single-branch' : '') : ''
10381038

1039-
if has('win32unix')
1039+
if has('win32unix') || has('wsl')
10401040
let s:clone_opt .= ' -c core.eol=lf -c core.autocrlf=input'
10411041
endif
10421042

0 commit comments

Comments
 (0)