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.
This commit is contained in:
Tim Pope 2012-12-09 14:54:11 -05:00
parent aa443b8836
commit 23fb876909

View File

@ -401,6 +401,7 @@ function! s:opfunc(type) abort
else else
silent exe "normal! `[v`]y" silent exe "normal! `[v`]y"
endif endif
redraw
return @@ return @@
finally finally
let @@ = reg_save let @@ = reg_save