Ensure clipboard support before using * register

Closes #526.
This commit is contained in:
Tom McDonald 2014-07-23 07:42:26 -04:00 committed by Tim Pope
parent 24d4098ceb
commit 7423d72b51

View File

@ -2195,7 +2195,9 @@ function! s:Browse(bang,line1,count,...) abort
endif
if a:bang
let @* = url
if has('clipboard')
let @* = url
endif
return 'echomsg '.string(url)
elseif exists(':Browse') == 2
return 'echomsg '.string(url).'|Browse '.url