From 23fb8769095b419216747a5814e3962e04cff886 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 9 Dec 2012 14:54:11 -0500 Subject: [PATCH] Fix output after cp on large expressions The expression for cp is grabbed in visual mode, forcing the window to shift if the entire expression doesn't fit. Fixing that is hard, so instead lets just preemptively redraw so a scroll doesn't blow away the output. --- plugin/foreplay.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/foreplay.vim b/plugin/foreplay.vim index c99afc6..4da4c74 100644 --- a/plugin/foreplay.vim +++ b/plugin/foreplay.vim @@ -401,6 +401,7 @@ function! s:opfunc(type) abort else silent exe "normal! `[v`]y" endif + redraw return @@ finally let @@ = reg_save