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:
parent
aa443b8836
commit
23fb876909
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user