aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorii14 <59243201+ii14@users.noreply.github.com>2022-06-19 19:33:54 +0200
committerGitHub <noreply@github.com>2022-06-19 10:33:54 -0700
commita195dc7c83b3da16e293ddb468ef18254957b4a4 (patch)
tree80c932c5bcb8239c60a64cec02e353b50ba8db09 /src
parent837ea6da9f65ac4ec85421c6e4af15194cc222d0 (diff)
downloadrneovim-a195dc7c83b3da16e293ddb468ef18254957b4a4.tar.gz
rneovim-a195dc7c83b3da16e293ddb468ef18254957b4a4.tar.bz2
rneovim-a195dc7c83b3da16e293ddb468ef18254957b4a4.zip
fix(decorations): nvim_buf_set_extmark breaks conceal #19010
Closes #19007 Co-authored-by: bfredl <bjorn.linse@gmail.com> Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/nvim/decoration.c2
-rw-r--r--src/nvim/extmark.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/decoration.c b/src/nvim/decoration.c
index b1a22b3294..e7c76fe38e 100644
--- a/src/nvim/decoration.c
+++ b/src/nvim/decoration.c
@@ -69,7 +69,7 @@ void bufhl_add_hl_pos_offset(buf_T *buf, int src_id, int hl_id, lpos_T pos_start
void decor_redraw(buf_T *buf, int row1, int row2, Decoration *decor)
{
if (row2 >= row1) {
- if (!decor || decor->hl_id || decor_has_sign(decor)) {
+ if (!decor || decor->hl_id || decor_has_sign(decor) || decor->conceal) {
redraw_buf_range_later(buf, row1 + 1, row2 + 1);
}
}
diff --git a/src/nvim/extmark.c b/src/nvim/extmark.c
index b9e0d18f20..1639f72990 100644
--- a/src/nvim/extmark.c
+++ b/src/nvim/extmark.c
@@ -68,6 +68,7 @@ void extmark_set(buf_T *buf, uint32_t ns_id, uint32_t *idp, int row, colnr_T col
if (decor) {
if (kv_size(decor->virt_text)
|| kv_size(decor->virt_lines)
+ || decor->conceal
|| decor_has_sign(decor)
|| decor->ui_watched) {
decor_full = true;