Manually zero out deleted_bytes2 when substituting and joining lines

This commit is contained in:
chentau
2021-06-11 00:41:54 -07:00
parent 1df8a34a7b
commit 1c962401a1
3 changed files with 36 additions and 0 deletions

View File

@@ -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