Suppress errors when restoring invalid registers

Particularly for * and + registers when clipboard support is not
present.

Fixes #31
This commit is contained in:
Tom McDonald 2014-12-22 14:10:56 +00:00
parent fc78e3aa68
commit 4da8b67383

View File

@ -109,7 +109,7 @@ function! s:save_reg(name)
endfunction
function! s:restore_reg(name, reg)
call setreg(a:name, a:reg[0], a:reg[1])
silent! call setreg(a:name, a:reg[0], a:reg[1])
endfunction
function! s:highlight(exchange)