Merge pull request #6 from jebaum/master

make sure to paste from unnamed register
This commit is contained in:
Tom McDonald 2013-12-10 03:24:26 -08:00
commit 87398ce633

View File

@ -6,12 +6,12 @@ function! s:exchange(x, y)
call setpos("'a", a:y[2]) call setpos("'a", a:y[2])
call setpos("'b", a:y[3]) call setpos("'b", a:y[3])
let @@ = a:x[0] let @@ = a:x[0]
silent exe "normal! `a" . a:y[1] . "`bp" silent exe "normal! `a" . a:y[1] . "`b\"\"p"
call setpos("'a", a:x[2]) call setpos("'a", a:x[2])
call setpos("'b", a:x[3]) call setpos("'b", a:x[3])
let @@ = a:y[0] let @@ = a:y[0]
silent exe "normal! `a" . a:x[1] . "`bp" silent exe "normal! `a" . a:x[1] . "`b\"\"p"
call setpos("'a", a) call setpos("'a", a)
call setpos("'b", b) call setpos("'b", b)