diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-05-17 09:14:54 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-05-17 09:14:54 +0200 |
commit | e121b1dbe78cdf7ad46f493ca3a1cb83c190f719 (patch) | |
tree | 9b38b0944d078da2b0fa30f2bfe70d6c5233e89b /src/nvim/normal.c | |
parent | 2aa308c6852b7c51caef5dd6dc4e809719ca7a55 (diff) | |
parent | d2944e6a298e824e5084ac0dfd8701ff9cd1a523 (diff) | |
download | rneovim-e121b1dbe78cdf7ad46f493ca3a1cb83c190f719.tar.gz rneovim-e121b1dbe78cdf7ad46f493ca3a1cb83c190f719.tar.bz2 rneovim-e121b1dbe78cdf7ad46f493ca3a1cb83c190f719.zip |
Merge #8331 'handle various errors'
closes #8331
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index e4310de5d8..43e8b6fb3d 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -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); } |