Skip to content

Commit c128d0c

Browse files
committed
Merge pull request #189 from kballard/yank-url-better
Yank the gist url to @+ even if -xterm_clipboard
2 parents 1985efd + 0c21433 commit c128d0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

autoload/gist.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -891,10 +891,10 @@ function! gist#Gist(count, bang, line1, line2, ...) abort
891891
endif
892892
if exists('g:gist_clip_command')
893893
call system(g:gist_clip_command, url)
894-
elseif has('unix') && !has('xterm_clipboard')
895-
let @" = url
896-
else
894+
elseif has('clipboard')
897895
let @+ = url
896+
else
897+
let @" = url
898898
endif
899899
endif
900900
endif

0 commit comments

Comments
 (0)