From 108566e7b6f1b331dac8e339280c230bf39c137d Mon Sep 17 00:00:00 2001 From: Bjorn Neergaard Date: Wed, 21 Nov 2018 04:24:40 -0700 Subject: clipboard.vim: check for win32yank.exe #9263 Win32 allows omitting the `.exe` extension, but WSL does not. --- runtime/autoload/provider/clipboard.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'runtime/autoload') diff --git a/runtime/autoload/provider/clipboard.vim b/runtime/autoload/provider/clipboard.vim index b763d28570..0c65198d78 100644 --- a/runtime/autoload/provider/clipboard.vim +++ b/runtime/autoload/provider/clipboard.vim @@ -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' -- cgit