TextYankPost: spurious/too-early dispatch during delete #10392

Problem: delete-with-register dispatches TextYankPost before updating yank registers
Solution: Add flag to op_yank().

Fixes #10225
This commit is contained in:
Jit
2019-07-29 00:50:12 +02:00
committed by Justin M. Keyes
parent 4213492231
commit 7cc2b723d4
4 changed files with 21 additions and 8 deletions

View File

@@ -1817,7 +1817,7 @@ void do_pending_operator(cmdarg_T *cap, int old_col, bool gui_yank)
}
} else {
curwin->w_p_lbr = lbr_saved;
(void)op_yank(oap, !gui_yank);
(void)op_yank(oap, !gui_yank, false);
}
check_cursor_col();
break;