diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-08-06 20:25:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-06 20:25:46 +0200 |
commit | 6fb0020df4eb799004c4a13bcf3326c4b1cf3fe5 (patch) | |
tree | b696890d92c317c8c1bdee8781667edec02f649e /src/nvim/fileio.c | |
parent | dc1359bf8ed3afae99cceb2ee7a786d4d2b9f037 (diff) | |
parent | c0993ed3433ef4111a39e59642d15b15261e8b68 (diff) | |
download | rneovim-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.c | 3 |
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; |