From 5a36d413fbc6b34ea66df27b90ebd2f725475a77 Mon Sep 17 00:00:00 2001 From: chentau Date: Wed, 14 Apr 2021 12:00:09 -0700 Subject: flush curbuf->deleted_bytes2 after calling do_move --- src/nvim/extmark.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nvim/extmark.c') diff --git a/src/nvim/extmark.c b/src/nvim/extmark.c index cacbeddb32..2906a2196b 100644 --- a/src/nvim/extmark.c +++ b/src/nvim/extmark.c @@ -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. -- cgit