Patch 8.2.2029
Problem: Coverity warns for not checking return value.
Solution: Check that u_save_cursor() returns OK.
Files: src/ops.c
*** ../vim-8.2.2028/src/ops.c 2020-11-18 11:34:30.178191415 +0100
--- src/ops.c 2020-11-21 14:15:17.860940587 +0100
***************
*** 3871,3879 ****
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);
}
break;
--- 3871,3880 ----
else
{
(void)op_delete(oap);
! // 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;
*** ../vim-8.2.2028/src/version.c 2020-11-21 14:03:39.851158161 +0100
--- src/version.c 2020-11-21 14:16:00.984817194 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2029,
/**/
--
Facepalm statement #9: "Did you see, there is now even a hobbit book"
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202011211317.0ALDHKtZ916419%40masaka.moolenaar.net.