summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-03-19 11:42:16 +0000
committerBram Moolenaar <Bram@vim.org>2022-03-19 11:42:16 +0000
commit95d2e7634ccd8e0da78086002509a856999e180c (patch)
tree7d3fc17fba3573e046689e547a83bd43c1631636
parentb10ff5c1b3581ed4990d196bed51b4a8f961e8a2 (diff)
downloadvim-git-95d2e7634ccd8e0da78086002509a856999e180c.tar.gz
patch 8.2.4593: unnecessary call to redraw_later()v8.2.4593
Problem: Unnecessary call to redraw_later(). Solution: Remove the call to redraw_later() in op_yank(). (closes #9971)
-rw-r--r--src/register.c3
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/register.c b/src/register.c
index 9406ff84b..89d4232c8 100644
--- a/src/register.c
+++ b/src/register.c
@@ -1330,8 +1330,7 @@ op_yank(oparg_T *oap, int deleting, int mess)
vim_free(y_current->y_array);
y_current = curr;
}
- if (curwin->w_p_rnu)
- redraw_later(SOME_VALID); // cursor moved to start
+
if (mess) // Display message about yank?
{
if (yanktype == MCHAR
diff --git a/src/version.c b/src/version.c
index c2e491429..442db2ca7 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 4593,
+/**/
4592,
/**/
4591,