Problem: Invalid memory access when cmdheight is zero.
Solution: Check index in w_lines is smaller than Rows.
// handle the drop now.
handle_any_postponed_drop();
#endif
+
+ // in case it was changed in dont_use_message_window()
+ cmdline_row = Rows - p_ch;
}
/*
if (wp->w_lines_valid > wp->w_height)
wp->w_lines_valid = wp->w_height;
for (i = wp->w_lines_valid; i - j >= idx; --i)
- wp->w_lines[i] = wp->w_lines[i - j];
+ if (i < Rows)
+ wp->w_lines[i] = wp->w_lines[i - j];
// The w_lines[] entries for inserted lines are
// now invalid, but wl_size may be used above.
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 309,
/**/
308,
/**/