fix(column): don't overflow sign column with extmark signs (#23854)

This commit is contained in:
zeertzjq
2023-06-01 16:20:31 +08:00
committed by GitHub
parent be5e361154
commit 2bdef6dd2a
2 changed files with 38 additions and 3 deletions

View File

@@ -433,7 +433,9 @@ void decor_redraw_signs(buf_T *buf, int row, int *num_signs, SignTextAttrs sattr
if (sattrs[j - 1].priority >= decor->priority) {
break;
}
sattrs[j] = sattrs[j - 1];
if (j < SIGN_SHOW_MAX) {
sattrs[j] = sattrs[j - 1];
}
}
if (j < SIGN_SHOW_MAX) {
sattrs[j] = (SignTextAttrs) {