clipboard.vim: check for win32yank.exe #9263

Win32 allows omitting the `.exe` extension, but WSL does not.
This commit is contained in:
Bjorn Neergaard 2018-11-21 04:24:40 -07:00 committed by Justin M. Keyes
parent 684c7d9228
commit 108566e7b6

View File

@ -101,9 +101,9 @@ function! provider#clipboard#Executable() abort
let s:copy['*'] = s:copy['+']
let s:paste['*'] = s:paste['+']
return 'doitclient'
elseif executable('win32yank')
let s:copy['+'] = 'win32yank -i --crlf'
let s:paste['+'] = 'win32yank -o --lf'
elseif executable('win32yank.exe')
let s:copy['+'] = 'win32yank.exe -i --crlf'
let s:paste['+'] = 'win32yank.exe -o --lf'
let s:copy['*'] = s:copy['+']
let s:paste['*'] = s:paste['+']
return 'win32yank'