diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-22 09:05:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-22 09:05:52 +0800 |
commit | 2137edbd4f15781a3a17091d38688a8ecbc02988 (patch) | |
tree | 16faa55543982ee9a87280e081711778e7cc43b2 /src/nvim/api | |
parent | d9e6a442f2ff9aebf4d45ad6fb5b05d492eb4e38 (diff) | |
download | rneovim-2137edbd4f15781a3a17091d38688a8ecbc02988.tar.gz rneovim-2137edbd4f15781a3a17091d38688a8ecbc02988.tar.bz2 rneovim-2137edbd4f15781a3a17091d38688a8ecbc02988.zip |
fix(extmarks): redraw properly with scoped inline virt_text (#27569)
Diffstat (limited to 'src/nvim/api')
-rw-r--r-- | src/nvim/api/extmark.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/api/extmark.c b/src/nvim/api/extmark.c index 96ee37e6aa..23a42798d9 100644 --- a/src/nvim/api/extmark.c +++ b/src/nvim/api/extmark.c @@ -26,6 +26,7 @@ #include "nvim/mbyte.h" #include "nvim/memline.h" #include "nvim/memory.h" +#include "nvim/move.h" #include "nvim/pos_defs.h" #include "nvim/sign.h" @@ -1244,7 +1245,7 @@ Boolean nvim_win_add_ns(Window window, Integer ns_id, Error *err) set_put(uint32_t, &win->w_ns_set, (uint32_t)ns_id); - redraw_all_later(UPD_NOT_VALID); // TODO(altermo): only need to redraw the window + changed_window_setting_win(win); return true; } @@ -1289,7 +1290,7 @@ Boolean nvim_win_remove_ns(Window window, Integer ns_id, Error *err) set_del_uint32_t(&win->w_ns_set, (uint32_t)ns_id); - redraw_later(win, UPD_NOT_VALID); + changed_window_setting_win(win); return true; } |