diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2020-01-17 22:27:17 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2020-02-10 13:10:15 +0100 |
commit | 95fd28f4a1ef4e298695e0204bdb5b347aa0f57c (patch) | |
tree | 61728978f5d8570a2a96d10304520f983edbde61 /src/nvim/extmark.c | |
parent | 6c5bbf07d988ef55e5e8ba8d70b62c1f0885261b (diff) | |
download | rneovim-95fd28f4a1ef4e298695e0204bdb5b347aa0f57c.tar.gz rneovim-95fd28f4a1ef4e298695e0204bdb5b347aa0f57c.tar.bz2 rneovim-95fd28f4a1ef4e298695e0204bdb5b347aa0f57c.zip |
treesitter: use internal "decorations" buffer
Diffstat (limited to 'src/nvim/extmark.c')
-rw-r--r-- | src/nvim/extmark.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/extmark.c b/src/nvim/extmark.c index 60ff5c3af9..69dbda5bb9 100644 --- a/src/nvim/extmark.c +++ b/src/nvim/extmark.c @@ -756,17 +756,18 @@ VirtText *extmark_find_virttext(buf_T *buf, int row, uint64_t ns_id) return NULL; } - +// TODO: use decoration_state prefix bool extmark_decorations_reset(buf_T *buf, DecorationState *state) { state->row = -1; - return buf->b_extmark_index; + kv_size(state->active) = 0; + // TODO: for tmp decorations! + return buf->b_extmark_index || true; } bool extmark_decorations_start(buf_T *buf, int top_row, DecorationState *state) { - kv_size(state->active) = 0; state->top_row = top_row; marktree_itr_get(buf->b_marktree, top_row, 0, state->itr); if (!state->itr->node) { |