aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fileio.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-08-06 20:25:46 +0200
committerGitHub <noreply@github.com>2019-08-06 20:25:46 +0200
commit6fb0020df4eb799004c4a13bcf3326c4b1cf3fe5 (patch)
treeb696890d92c317c8c1bdee8781667edec02f649e /src/nvim/fileio.c
parentdc1359bf8ed3afae99cceb2ee7a786d4d2b9f037 (diff)
parentc0993ed3433ef4111a39e59642d15b15261e8b68 (diff)
downloadrneovim-6fb0020df4eb799004c4a13bcf3326c4b1cf3fe5.tar.gz
rneovim-6fb0020df4eb799004c4a13bcf3326c4b1cf3fe5.tar.bz2
rneovim-6fb0020df4eb799004c4a13bcf3326c4b1cf3fe5.zip
Merge pull request #10513 from bfredl/bytecount
api/lua: add {byte_count} parameter to line region change event
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r--src/nvim/fileio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index a164cf47d5..d03b9138d0 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -1755,6 +1755,9 @@ failed:
ml_delete(curbuf->b_ml.ml_line_count, false);
linecnt--;
}
+ curbuf->deleted_bytes = 0;
+ curbuf->deleted_codepoints = 0;
+ curbuf->deleted_codeunits = 0;
linecnt = curbuf->b_ml.ml_line_count - linecnt;
if (filesize == 0)
linecnt = 0;