patch 8.0.0140
Problem: Pasting inserted text in Visual mode does not work properly.
(Matthew Malcomson)
Solution: Stop Visual mode before stuffing the inserted text. (Christian
Brabandt, from neovim #5709)
diff --git a/src/ops.c b/src/ops.c
index f966cb9..0853fd0 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -3351,6 +3351,8 @@
*/
if (regname == '.')
{
+ if (VIsual_active)
+ stuffcharReadbuff(VIsual_mode);
(void)stuff_inserted((dir == FORWARD ? (count == -1 ? 'o' : 'a') :
(count == -1 ? 'O' : 'i')), count, FALSE);
/* Putting the text is done later, so can't really move the cursor to