fix(extmarks): redraw properly with scoped inline virt_text (#27569)

This commit is contained in:
zeertzjq
2024-02-22 09:05:52 +08:00
committed by GitHub
parent d9e6a442f2
commit 2137edbd4f
3 changed files with 28 additions and 3 deletions

View File

@@ -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;
}