mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 08:02:38 +00:00
clipboard.vim: check for win32yank.exe #9263
Win32 allows omitting the `.exe` extension, but WSL does not.
This commit is contained in:
committed by
Justin M. Keyes
parent
684c7d9228
commit
108566e7b6
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user