termux-packages/packages/neovim/runtime-autoload-provider-clipboard.vim.patch

17 lines
801 B
Diff
Raw Normal View History

diff -u -r ../neovim-25427ae892ccbb537a718c8abfbd4c79d9f94091/runtime/autoload/provider/clipboard.vim ./runtime/autoload/provider/clipboard.vim
--- ../neovim-25427ae892ccbb537a718c8abfbd4c79d9f94091/runtime/autoload/provider/clipboard.vim 2017-01-24 14:25:50.000000000 +0100
+++ ./runtime/autoload/provider/clipboard.vim 2017-01-25 16:08:31.967989258 +0100
@@ -84,6 +84,12 @@
2017-01-17 15:51:17 +01:00
let s:copy['*'] = s:copy['+']
2016-11-04 12:13:39 +01:00
let s:paste['*'] = s:paste['+']
return 'win32yank'
2016-11-04 12:13:39 +01:00
+ elseif executable('termux-clipboard-set')
+ let s:copy['+'] = 'termux-clipboard-set'
+ let s:paste['+'] = 'termux-clipboard-get'
2016-11-04 21:28:22 +01:00
+ let s:copy['*'] = s:copy['+']
+ let s:paste['*'] = s:paste['+']
+ return 'termux-clipboard'
2017-01-17 15:51:17 +01:00
endif
2017-01-17 15:51:17 +01:00
let s:err = 'clipboard: No clipboard tool available. See :help clipboard'