aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjorn Neergaard <bjorn@neersighted.com>2018-11-21 04:24:40 -0700
committerJustin M. Keyes <justinkz@gmail.com>2018-11-21 12:24:40 +0100
commit108566e7b6f1b331dac8e339280c230bf39c137d (patch)
tree3f024a8a771e6b98b4d4118fbebea579fd525114
parent684c7d9228c1707002410470ef6b981adf3c8eba (diff)
downloadrneovim-108566e7b6f1b331dac8e339280c230bf39c137d.tar.gz
rneovim-108566e7b6f1b331dac8e339280c230bf39c137d.tar.bz2
rneovim-108566e7b6f1b331dac8e339280c230bf39c137d.zip
clipboard.vim: check for win32yank.exe #9263
Win32 allows omitting the `.exe` extension, but WSL does not.
-rw-r--r--runtime/autoload/provider/clipboard.vim6
1 files changed, 3 insertions, 3 deletions
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'