X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/322e080b32af397bb5bd629ec2bc73fe7a4728b5..f252068260cd4a0d8abcaf8fa3b0f9328854d707:/packages/neovim/runtime-autoload-provider-clipboard.vim.patch diff --git a/packages/neovim/runtime-autoload-provider-clipboard.vim.patch b/packages/neovim/runtime-autoload-provider-clipboard.vim.patch index f2d84b40..0c249bd1 100644 --- a/packages/neovim/runtime-autoload-provider-clipboard.vim.patch +++ b/packages/neovim/runtime-autoload-provider-clipboard.vim.patch @@ -1,15 +1,16 @@ -diff -u -r ../neovim-01f1028496bd1a402ad1b11c311291ec96335b70/runtime/autoload/provider/clipboard.vim ./runtime/autoload/provider/clipboard.vim ---- ../neovim-01f1028496bd1a402ad1b11c311291ec96335b70/runtime/autoload/provider/clipboard.vim 2016-11-02 20:06:23.000000000 -0400 -+++ ./runtime/autoload/provider/clipboard.vim 2016-11-04 07:00:46.931928888 -0400 -@@ -45,6 +45,11 @@ +diff -u -r ../neovim-76ea97c809e50fccc5ca6615943ac6da1db1e030/runtime/autoload/provider/clipboard.vim ./runtime/autoload/provider/clipboard.vim +--- ../neovim-76ea97c809e50fccc5ca6615943ac6da1db1e030/runtime/autoload/provider/clipboard.vim 2017-06-19 00:01:29.000000000 +0000 ++++ ./runtime/autoload/provider/clipboard.vim 2017-06-19 20:10:55.376978820 +0000 +@@ -90,6 +90,12 @@ + let s:copy['*'] = s:copy['+'] let s:paste['*'] = s:paste['+'] - let s:cache_enabled = 0 - return 'pbcopy' + return 'tmux' + elseif executable('termux-clipboard-set') + let s:copy['+'] = 'termux-clipboard-set' + let s:paste['+'] = 'termux-clipboard-get' -+ let s:copy['*'] = 'termux-clipboard-set' -+ let s:paste['*'] = 'termux-clipboard-get' - elseif exists('$DISPLAY') && executable('xsel') - let s:copy['+'] = 'xsel --nodetach -i -b' - let s:paste['+'] = 'xsel -o -b' ++ let s:copy['*'] = s:copy['+'] ++ let s:paste['*'] = s:paste['+'] ++ return 'termux-clipboard' + endif + + let s:err = 'clipboard: No clipboard tool available. :help clipboard'