Use getreg() instead of macro syntax

This commit is contained in:
Tom McDonald 2013-12-11 10:19:25 -05:00
parent 62ae17d31a
commit 2d7ef58550

View File

@ -41,7 +41,7 @@ function! s:exchange_get(type, vis)
let [start, end] = s:store_pos("'[", "']")
silent exe "normal! `[v`]y"
endif
let text = @@
let text = getreg('@')
call setreg('"', reg, reg_mode)
let &selection = selection
return [text, type, start, end]