Problem: Removing a text property causes the whole window to be redawn.
Solution: Use changed_lines_buf() to only redraw the affected lines.
}
}
if (rettv->vval.v_number > 0)
- redraw_buf_later(buf, NOT_VALID);
+ {
+ 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);
+ }
+ }
}
/*
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2862,
/**/
2861,
/**/