Problem: memleak with ex_drop(), NULL dereference
(zeertzjq)
Solution: revert back to ex_rewind(), use curbuf instead of buf
fixes: #14246
closes: #14251
Signed-off-by: Christian Brabandt <cb@256bit.org>
buf_check_timestamp(curbuf, FALSE);
curbuf->b_p_ar = save_ar;
}
- if (buf->b_ml.ml_flags & ML_EMPTY)
- open_buffer(FALSE, eap, 0);
+ if (curbuf->b_ml.ml_flags & ML_EMPTY)
+ ex_rewind(eap);
return;
}
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 195,
/**/
194,
/**/