diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-06-01 16:20:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-01 16:20:31 +0800 |
commit | 2bdef6dd2a7572602aeb2efec76812769bcee246 (patch) | |
tree | 35fa304e530791b8fea12dfc34fa016dc883c930 /src | |
parent | be5e3611541051d9fa5b752a4fe1da6ab78b141e (diff) | |
download | rneovim-2bdef6dd2a7572602aeb2efec76812769bcee246.tar.gz rneovim-2bdef6dd2a7572602aeb2efec76812769bcee246.tar.bz2 rneovim-2bdef6dd2a7572602aeb2efec76812769bcee246.zip |
fix(column): don't overflow sign column with extmark signs (#23854)
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/decoration.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/decoration.c b/src/nvim/decoration.c index 677bc25127..2027848ccf 100644 --- a/src/nvim/decoration.c +++ b/src/nvim/decoration.c @@ -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) { |