fix(drawline): don't invoke on_line for filler line (#28219)

Problem:
Decoration provider `on_line` handler is invoked for diff filler line
below the last buffer line. This does not match the documentation:
"called for each buffer line".

Solution:
Check `end_fill`.
This commit is contained in:
Jaehwang Jung
2024-04-10 21:18:14 +09:00
committed by GitHub
parent 1dacf2ecee
commit 889f81c65f
2 changed files with 30 additions and 1 deletions

View File

@@ -1030,7 +1030,9 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, int col_rows, s
has_decor = decor_redraw_line(wp, lnum - 1, &decor_state);
decor_providers_invoke_line(wp, lnum - 1, &has_decor);
if (!end_fill) {
decor_providers_invoke_line(wp, lnum - 1, &has_decor);
}
if (has_decor) {
extra_check = true;