diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-01-22 21:05:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-22 21:05:12 +0100 |
commit | 51f783f2faa2008bfb4136a15029a78efbc77715 (patch) | |
tree | 5b365b7d3f9f00fdc19f1ac5f30645a2afa66396 /src/nvim/api/buffer.c | |
parent | 012cfced9b5384fefa11d74346779b1725106d07 (diff) | |
parent | 9af2be292db3db7b28a6210263f719a6bbc4059f (diff) | |
download | rneovim-51f783f2faa2008bfb4136a15029a78efbc77715.tar.gz rneovim-51f783f2faa2008bfb4136a15029a78efbc77715.tar.bz2 rneovim-51f783f2faa2008bfb4136a15029a78efbc77715.zip |
Merge pull request #27011 from bfredl/metatree
perf(extmarks): add metadata for efficient filtering of special decorations
Diffstat (limited to 'src/nvim/api/buffer.c')
-rw-r--r-- | src/nvim/api/buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c index 8a091f39e4..7e79087f10 100644 --- a/src/nvim/api/buffer.c +++ b/src/nvim/api/buffer.c @@ -32,6 +32,7 @@ #include "nvim/mapping.h" #include "nvim/mark.h" #include "nvim/mark_defs.h" +#include "nvim/marktree.h" #include "nvim/memline.h" #include "nvim/memline_defs.h" #include "nvim/memory.h" @@ -1282,7 +1283,7 @@ Dictionary nvim__buf_stats(Buffer buffer, Error *err) // this exists to debug issues PUT(rv, "dirty_bytes", INTEGER_OBJ((Integer)buf->deleted_bytes)); PUT(rv, "dirty_bytes2", INTEGER_OBJ((Integer)buf->deleted_bytes2)); - PUT(rv, "virt_blocks", INTEGER_OBJ((Integer)buf->b_virt_line_blocks)); + PUT(rv, "virt_blocks", INTEGER_OBJ((Integer)buf_meta_total(buf, kMTMetaLines))); u_header_T *uhp = NULL; if (buf->b_u_curhead != NULL) { |