fix(extmarks): don't show virt lines for end mark

(cherry picked from commit ffbf0cecb6)
This commit is contained in:
zeertzjq
2023-05-28 14:18:33 +08:00
committed by github-actions[bot]
parent e953f29c9b
commit edf2a5aa25
2 changed files with 25 additions and 1 deletions

View File

@@ -587,7 +587,7 @@ int decor_virt_lines(win_T *wp, linenr_T lnum, VirtLines *lines, TriState has_fo
mtkey_t mark = marktree_itr_current(itr);
if (mark.pos.row < 0 || mark.pos.row >= end_row) {
break;
} else if (marktree_decor_level(mark) < kDecorLevelVirtLine) {
} else if (mt_end(mark) || marktree_decor_level(mark) < kDecorLevelVirtLine) {
goto next_mark;
}
bool above = mark.pos.row > (lnum - 2);