aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/extmark.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-01-17 22:27:17 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2020-02-10 13:10:15 +0100
commit95fd28f4a1ef4e298695e0204bdb5b347aa0f57c (patch)
tree61728978f5d8570a2a96d10304520f983edbde61 /src/nvim/extmark.c
parent6c5bbf07d988ef55e5e8ba8d70b62c1f0885261b (diff)
downloadrneovim-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.c7
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) {