mirror of
https://github.com/neovim/neovim.git
synced 2026-07-16 22:21:30 +00:00
coverity/13713: do_pending_operator: handle failed u_save_cursor()
This commit is contained in:
committed by
Justin M. Keyes
parent
aea70b4404
commit
189a5f2b95
@@ -1812,7 +1812,10 @@ void do_pending_operator(cmdarg_T *cap, int old_col, bool gui_yank)
|
||||
} else {
|
||||
(void)op_delete(oap);
|
||||
if (oap->motion_type == kMTLineWise && has_format_option(FO_AUTO)) {
|
||||
u_save_cursor(); // cursor line wasn't saved yet
|
||||
// cursor line wasn't saved yet
|
||||
if (u_save_cursor() == FAIL) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
auto_format(false, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user