mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 23:18:33 +00:00
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!
This commit is contained in:
@@ -835,6 +835,7 @@ struct file_buffer {
|
||||
// tree-sitter) or the corresponding UTF-32/UTF-16 size (like LSP) of the
|
||||
// deleted text.
|
||||
size_t deleted_bytes;
|
||||
size_t deleted_bytes2;
|
||||
size_t deleted_codepoints;
|
||||
size_t deleted_codeunits;
|
||||
|
||||
|
Reference in New Issue
Block a user