Problem: Cursor displayed in wrong position after deleting line.
Solution: When deleting lines do not approximate botline. (fixes #8559)
changed_cline_bef_curs_win(wp);
if (wp->w_botline >= lnum)
{
- // Assume that botline doesn't change (inserted lines make
- // other lines scroll down below botline).
- approximate_botline_win(wp);
+ if (xtra < 0)
+ invalidate_botline_win(wp);
+ else
+ // Assume that botline doesn't change (inserted lines make
+ // other lines scroll down below botline).
+ approximate_botline_win(wp);
}
// Check if any w_lines[] entries have become invalid.
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 3159,
/**/
3158,
/**/