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/ops.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/ops.c')
-rw-r--r-- | src/nvim/ops.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index b39b139f9b..d874768dfc 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -2724,7 +2724,9 @@ void do_put(int regname, yankreg_T *reg, int dir, long count, int flags) // So the 'u' command restores cursor position after ".p, save the cursor // position now (though not saving any text). if (command_start_char == 'a') { - u_save(curwin->w_cursor.lnum, curwin->w_cursor.lnum + 1); + if (u_save(curwin->w_cursor.lnum, curwin->w_cursor.lnum + 1) == FAIL) { + return; + } } return; } @@ -2742,7 +2744,6 @@ void do_put(int regname, yankreg_T *reg, int dir, long count, int flags) // Autocommands may be executed when saving lines for undo, which may make // y_array invalid. Start undo now to avoid that. if (u_save(curwin->w_cursor.lnum, curwin->w_cursor.lnum + 1) == FAIL) { - ELOG("Failed to save undo information"); return; } } |