mirror of
https://github.com/neovim/neovim.git
synced 2025-12-11 09:02:40 +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:copy['*'] = s:copy['+']
|
||||||
let s:paste['*'] = s:paste['+']
|
let s:paste['*'] = s:paste['+']
|
||||||
return 'doitclient'
|
return 'doitclient'
|
||||||
elseif executable('win32yank')
|
elseif executable('win32yank.exe')
|
||||||
let s:copy['+'] = 'win32yank -i --crlf'
|
let s:copy['+'] = 'win32yank.exe -i --crlf'
|
||||||
let s:paste['+'] = 'win32yank -o --lf'
|
let s:paste['+'] = 'win32yank.exe -o --lf'
|
||||||
let s:copy['*'] = s:copy['+']
|
let s:copy['*'] = s:copy['+']
|
||||||
let s:paste['*'] = s:paste['+']
|
let s:paste['*'] = s:paste['+']
|
||||||
return 'win32yank'
|
return 'win32yank'
|
||||||
|
|||||||
Reference in New Issue
Block a user