fix(decorations): do not put empty virt_text (#17872)

This commit is contained in:
zeertzjq
2022-03-29 19:56:45 +08:00
committed by GitHub
parent 81d7628c3f
commit ba257d74b1
2 changed files with 34 additions and 1 deletions

View File

@@ -4335,6 +4335,9 @@ static int draw_virt_text_item(buf_T *buf, int col, VirtText vt, HlMode hl_mode,
break;
}
}
if (!*s.p) {
continue;
}
int attr;
bool through = false;
if (hl_mode == kHlModeCombine) {