Use getreg() instead of macro syntax
This commit is contained in:
parent
62ae17d31a
commit
2d7ef58550
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user