aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/extmark.c
diff options
context:
space:
mode:
authoraltermo <107814000+altermo@users.noreply.github.com>2024-02-06 11:52:42 +0100
committeraltermo <107814000+altermo@users.noreply.github.com>2024-02-21 16:11:50 +0100
commit1c032ad703a19cd5c8498ee95f9352df87a91139 (patch)
tree9c2c79ae6dc17feb4c63687069cb1b9805fcc1bb /src/nvim/extmark.c
parent6d8bbfe19df2175637a1e47ac1aafb0e96e35b38 (diff)
downloadrneovim-1c032ad703a19cd5c8498ee95f9352df87a91139.tar.gz
rneovim-1c032ad703a19cd5c8498ee95f9352df87a91139.tar.bz2
rneovim-1c032ad703a19cd5c8498ee95f9352df87a91139.zip
feat(extmark): window scoped extmark
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'src/nvim/extmark.c')
-rw-r--r--src/nvim/extmark.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/extmark.c b/src/nvim/extmark.c
index e4c4960b9e..c4a34f8019 100644
--- a/src/nvim/extmark.c
+++ b/src/nvim/extmark.c
@@ -54,12 +54,12 @@
/// must not be used during iteration!
void extmark_set(buf_T *buf, uint32_t ns_id, uint32_t *idp, int row, colnr_T col, int end_row,
colnr_T end_col, DecorInline decor, uint16_t decor_flags, bool right_gravity,
- bool end_right_gravity, bool no_undo, bool invalidate, Error *err)
+ bool end_right_gravity, bool no_undo, bool invalidate, bool scoped, Error *err)
{
uint32_t *ns = map_put_ref(uint32_t, uint32_t)(buf->b_extmark_ns, ns_id, NULL, NULL);
uint32_t id = idp ? *idp : 0;
- uint16_t flags = mt_flags(right_gravity, no_undo, invalidate, decor.ext) | decor_flags;
+ uint16_t flags = mt_flags(right_gravity, no_undo, invalidate, decor.ext, scoped) | decor_flags;
if (id == 0) {
id = ++*ns;
} else {