diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-03-16 13:56:05 +0100 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2023-03-16 13:56:05 +0100 |
commit | 8021300806e2ccf04b3ec33970b682ee3c7a9cc3 (patch) | |
tree | cd4b6ed77b3f0cfc8ba57466d7a871920116f1d4 /src/nvim/api/extmark.c | |
parent | 320cb344c14b30f8c1aa8c2d86803e4c2f971ae9 (diff) | |
download | rneovim-8021300806e2ccf04b3ec33970b682ee3c7a9cc3.tar.gz rneovim-8021300806e2ccf04b3ec33970b682ee3c7a9cc3.tar.bz2 rneovim-8021300806e2ccf04b3ec33970b682ee3c7a9cc3.zip |
refactor(extmarks): some minor internal API changes
extranges and a bunch of other improvements are coming for 0.10
This gets in some minor surrounding API changes to avoid rebase
conflicts until then.
- decorations will be able to be specific to windows
- adjust deletion API to fit with extranges
Diffstat (limited to 'src/nvim/api/extmark.c')
-rw-r--r-- | src/nvim/api/extmark.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/api/extmark.c b/src/nvim/api/extmark.c index 9e03cc8676..adc2925b7e 100644 --- a/src/nvim/api/extmark.c +++ b/src/nvim/api/extmark.c @@ -793,7 +793,7 @@ Integer nvim_buf_set_extmark(Buffer buffer, Integer ns_id, Integer line, Integer } // TODO(bfredl): synergize these two branches even more - if (ephemeral && decor_state.buf == buf) { + if (ephemeral && decor_state.win && decor_state.win->w_buffer == buf) { decor_add_ephemeral((int)line, (int)col, line2, col2, &decor, (uint64_t)ns_id, id); } else { if (ephemeral) { |