aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorchentau <tchen1998@gmail.com>2021-06-11 00:41:54 -0700
committerchentau <tchen1998@gmail.com>2021-06-29 00:48:24 -0700
commit1c962401a10911e2766a5290f9b8171558c8fb40 (patch)
tree5dc6d2e8343fa065aef3e7b6c5cf1d0047e89dc9 /src/nvim/ex_cmds.c
parent1df8a34a7b91028413d6ac751b9dbf9fdcd6cda2 (diff)
downloadrneovim-1c962401a10911e2766a5290f9b8171558c8fb40.tar.gz
rneovim-1c962401a10911e2766a5290f9b8171558c8fb40.tar.bz2
rneovim-1c962401a10911e2766a5290f9b8171558c8fb40.zip
Manually zero out deleted_bytes2 when substituting and joining lines
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 6a0a08eee8..8e0761f80c 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -4230,6 +4230,8 @@ skip:
}
}
+ curbuf->deleted_bytes2 = 0;
+
if (first_line != 0) {
/* Need to subtract the number of added lines from "last_line" to get
* the line number before the change (same as adding the number of