diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2020-02-29 15:27:17 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2020-09-09 21:22:21 +0200 |
commit | bc86f76c0a1d3234b749a105c9aae65f84c51320 (patch) | |
tree | c8930079e178c2a3233ef43602f7136d3f6981fb /src/nvim/fileio.c | |
parent | 81fa107f595ee0392b5f004b86e4e8d41e49cc9e (diff) | |
download | rneovim-bc86f76c0a1d3234b749a105c9aae65f84c51320.tar.gz rneovim-bc86f76c0a1d3234b749a105c9aae65f84c51320.tar.bz2 rneovim-bc86f76c0a1d3234b749a105c9aae65f84c51320.zip |
api/buffer: add "on_bytes" callback to nvim_buf_attach
This implements byte-resolution updates of buffer changes.
Note: there is no promise that the buffer state is valid inside
the callback!
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 7740673bbe..286f2b4fca 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -1797,6 +1797,7 @@ failed: linecnt--; } curbuf->deleted_bytes = 0; + curbuf->deleted_bytes2 = 0; curbuf->deleted_codepoints = 0; curbuf->deleted_codeunits = 0; linecnt = curbuf->b_ml.ml_line_count - linecnt; |