Problem: Coverity warns for not checking return value.
Solution: Check that u_save_cursor() returns OK.
else
{
(void)op_delete(oap);
- if (oap->motion_type == MLINE && has_format_option(FO_AUTO))
- u_save_cursor(); // cursor line wasn't saved yet
- auto_format(FALSE, TRUE);
+ // save cursor line for undo if it wasn't saved yet
+ if (oap->motion_type == MLINE && has_format_option(FO_AUTO)
+ && u_save_cursor() == OK)
+ auto_format(FALSE, TRUE);
}
break;
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2029,
/**/
2028,
/**/