Patch 8.2.2862
Problem: Removing a text property causes the whole window to be redawn.
Solution: Use changed_lines_buf() to only redraw the affected lines.
Files: src/textprop.c
*** ../vim-8.2.2861/src/textprop.c 2021-05-16 20:18:51.029536617 +0200
--- src/textprop.c 2021-05-17 00:12:04.780257074 +0200
***************
*** 933,939 ****
}
}
if (rettv->vval.v_number > 0)
! redraw_buf_later(buf, NOT_VALID);
}
/*
--- 933,947 ----
}
}
if (rettv->vval.v_number > 0)
! {
! if (start == 1 && end == buf->b_ml.ml_line_count)
! redraw_buf_later(buf, NOT_VALID);
! else
! {
! changed_lines_buf(buf, start, end + 1, 0);
! redraw_buf_later(buf, VALID);
! }
! }
}
/*
*** ../vim-8.2.2861/src/version.c 2021-05-17 00:01:38.807009262 +0200
--- src/version.c 2021-05-17 00:14:35.095598146 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2862,
/**/
--
GALAHAD turns back. We see from his POV the lovely ZOOT standing by him
smiling enchantingly and a number of equally delectable GIRLIES draped
around in the seductively poulticed room. They look at him smilingly and
wave.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///