Suppress errors when restoring invalid registers
Particularly for * and + registers when clipboard support is not present. Fixes #31
This commit is contained in:
parent
fc78e3aa68
commit
4da8b67383
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user