diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-08-04 12:22:22 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-08-06 20:24:36 +0200 |
commit | c0993ed3433ef4111a39e59642d15b15261e8b68 (patch) | |
tree | cb2a4225d70dec491f96412f96ebcb7c5a391e9a /src/nvim/fileio.c | |
parent | b0e26199ec02c9b392af6161522004c55db0441f (diff) | |
download | rneovim-c0993ed3433ef4111a39e59642d15b15261e8b68.tar.gz rneovim-c0993ed3433ef4111a39e59642d15b15261e8b68.tar.bz2 rneovim-c0993ed3433ef4111a39e59642d15b15261e8b68.zip |
lua: support getting UTF-32 and UTF-16 sizes of replaced text
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 2232de8c1e..d03b9138d0 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -1756,6 +1756,8 @@ failed: 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; |