aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/window.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/window.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/window.c')
-rw-r--r--src/nvim/window.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index f7f22c85ae..efaeeaa4c1 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -4989,6 +4989,9 @@ win_T *win_alloc(win_T *after, bool hidden)
new_wp->w_ns_hl = -1;
+ Set(uint32_t) ns_set = SET_INIT;
+ new_wp->w_ns_set = ns_set;
+
// use global option for global-local options
new_wp->w_allbuf_opt.wo_so = new_wp->w_p_so = -1;
new_wp->w_allbuf_opt.wo_siso = new_wp->w_p_siso = -1;
@@ -5027,6 +5030,8 @@ void win_free(win_T *wp, tabpage_T *tp)
// Don't execute autocommands while the window is halfway being deleted.
block_autocmds();
+ set_destroy(uint32_t, &wp->w_ns_set);
+
clear_winopt(&wp->w_onebuf_opt);
clear_winopt(&wp->w_allbuf_opt);