use silent! to graceful redraw.

This commit is contained in:
mattn 2011-11-30 10:25:37 +09:00
parent d6504d2eb5
commit 6167a1f7da

View File

@ -1143,7 +1143,7 @@ endf
fu! s:lastvisual() fu! s:lastvisual()
let [cview, oreg, oreg_type] = [winsaveview(), getreg('v'), getregtype('v')] let [cview, oreg, oreg_type] = [winsaveview(), getreg('v'), getregtype('v')]
norm! gv"vy sil! norm! gv"vy
let selected = substitute(getreg('v'), '\n', '\\n', 'g') let selected = substitute(getreg('v'), '\n', '\\n', 'g')
cal setreg('v', oreg, oreg_type) cal setreg('v', oreg, oreg_type)
cal winrestview(cview) cal winrestview(cview)