patch 8.2.3455: using a count with "gp" leaves '] in wrong position
Problem: Using a count with "gp" leaves '] in wrong position. (Naohiro Ono)
Solution: Correct the mark position. (closes #8899)
diff --git a/src/register.c b/src/register.c
index 3ddacb8..f034c64 100644
--- a/src/register.c
+++ b/src/register.c
@@ -2205,6 +2205,9 @@
{
curwin->w_cursor.lnum = new_lnum;
curwin->w_cursor.col = col;
+ curbuf->b_op_end = curwin->w_cursor;
+ if (col > 1)
+ curbuf->b_op_end.col = col - 1;
}
}
else if (y_type == MLINE)