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

17 lines
801 B
Diff
Raw Normal View History

2017-01-17 15:51:17 +01:00
diff -u -r ../neovim-a062cd4ce58ba9aca6fdce443b014c9c0949ecde/runtime/autoload/provider/clipboard.vim ./runtime/autoload/provider/clipboard.vim
--- ../neovim-a062cd4ce58ba9aca6fdce443b014c9c0949ecde/runtime/autoload/provider/clipboard.vim 2017-01-16 23:18:19.000000000 +0100
+++ ./runtime/autoload/provider/clipboard.vim 2017-01-17 10:14:57.997439109 +0100
@@ -78,6 +78,12 @@
let s:copy['*'] = s:copy['+']
2016-11-04 12:13:39 +01:00
let s:paste['*'] = s:paste['+']
2017-01-17 15:51:17 +01:00
return 'doitclient'
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
let s:err = 'clipboard: No clipboard tool available. See :help clipboard'