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

17 lines
852 B
Diff
Raw Normal View History

diff -u -r ../neovim-b57d9a4ff08fc1ef8db79d422b441b792493ff4e/runtime/autoload/provider/clipboard.vim ./runtime/autoload/provider/clipboard.vim
--- ../neovim-b57d9a4ff08fc1ef8db79d422b441b792493ff4e/runtime/autoload/provider/clipboard.vim 2017-11-25 22:22:46.000000000 +0000
+++ ./runtime/autoload/provider/clipboard.vim 2017-11-25 22:51:34.076263411 +0000
@@ -103,6 +103,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'
elseif exists('$TMUX') && executable('tmux')
let s:copy['+'] = 'tmux load-buffer -'
let s:paste['+'] = 'tmux save-buffer -'