flush curbuf->deleted_bytes2 after calling do_move

This commit is contained in:
chentau
2021-04-14 12:00:09 -07:00
parent d9c7adc64c
commit 5a36d413fb
3 changed files with 23 additions and 6 deletions

View File

@@ -702,6 +702,7 @@ void extmark_move_region(
int new_row, colnr_T new_col, bcount_t new_byte,
ExtmarkOp undo)
{
curbuf->deleted_bytes2 = 0;
// TODO(bfredl): this is not synced to the buffer state inside the callback.
// But unless we make the undo implementation smarter, this is not ensured
// anyway.