aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-28 17:22:25 +0800
committerGitHub <noreply@github.com>2023-05-28 17:22:25 +0800
commit4dd43e31db8fa23b5189e074cff94f1491035aac (patch)
treeafaeb5251aff89eb67693d8258fc2467d6e07cca /src
parentf29acc507305a7f4323a3233dc3867dfbe00132b (diff)
downloadrneovim-4dd43e31db8fa23b5189e074cff94f1491035aac.tar.gz
rneovim-4dd43e31db8fa23b5189e074cff94f1491035aac.tar.bz2
rneovim-4dd43e31db8fa23b5189e074cff94f1491035aac.zip
fix(extmarks): don't show virt lines for end mark (#23792)
Diffstat (limited to 'src')
-rw-r--r--src/nvim/decoration.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/decoration.c b/src/nvim/decoration.c
index 81e1cb617c..677bc25127 100644
--- a/src/nvim/decoration.c
+++ b/src/nvim/decoration.c
@@ -603,7 +603,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);