From 1c962401a10911e2766a5290f9b8171558c8fb40 Mon Sep 17 00:00:00 2001 From: chentau Date: Fri, 11 Jun 2021 00:41:54 -0700 Subject: Manually zero out deleted_bytes2 when substituting and joining lines --- src/nvim/ops.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nvim/ops.c') diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 2c8c7f0567..35496d372a 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -3977,6 +3977,7 @@ int do_join(size_t count, del_lines((long)count - 1, false); curwin->w_cursor.lnum = t; curbuf_splice_pending--; + curbuf->deleted_bytes2 = 0; /* * Set the cursor column: -- cgit