diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-11-26 21:07:29 +0100 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2023-11-28 10:35:25 +0100 |
commit | ae3685798deaf51f14422c568998998c03f91f2c (patch) | |
tree | e68c931455caf785a1abde270189cca9ea80eead /src/nvim/api/vim.c | |
parent | 6c14ae6bfaf51415b555e9a6b85d1d280976358d (diff) | |
download | rneovim-ae3685798deaf51f14422c568998998c03f91f2c.tar.gz rneovim-ae3685798deaf51f14422c568998998c03f91f2c.tar.bz2 rneovim-ae3685798deaf51f14422c568998998c03f91f2c.zip |
feat(decoration): allow conceal_char to be a composing char
decor->text.str pointer must go. This removes it for conceal char,
in preparation for a larger PR which will also handle the sign case.
By actually allowing composing chars for a conceal chars, this
becomes a feature and not just a refactor, as a bonus.
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r-- | src/nvim/api/vim.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index 858fda68b9..ad111510e5 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -1999,9 +1999,12 @@ void nvim__screenshot(String path) ui_call_screenshot(path); } +/// For testing. The condition in schar_cache_clear_if_full is hard to +/// reach, so this function can be used to force a cache clear in a test. void nvim__invalidate_glyph_cache(void) { - schar_cache_clear_force(); + schar_cache_clear(); + must_redraw = UPD_CLEAR; } Object nvim__unpack(String str, Error *err) |