From 6167a1f7daf0cdeb3c645e88289a0bd8ce6baf19 Mon Sep 17 00:00:00 2001 From: mattn Date: Wed, 30 Nov 2011 10:25:37 +0900 Subject: [PATCH] use silent! to graceful redraw. --- autoload/ctrlp.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim index ab8c92a..ed85a97 100644 --- a/autoload/ctrlp.vim +++ b/autoload/ctrlp.vim @@ -1143,7 +1143,7 @@ endf fu! s:lastvisual() 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') cal setreg('v', oreg, oreg_type) cal winrestview(cview)