aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/marktree.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-01-23 09:16:04 +0100
committerbfredl <bjorn.linse@gmail.com>2024-01-23 09:24:36 +0100
commit54225bdb021e64d09f98201bc0a610e2600b6473 (patch)
tree8051a68d4a4f42b04aab2dce6d316a4c421f403b /src/nvim/marktree.c
parentdc466f9a63ede5e2bbddc33688c0c972abfe9a52 (diff)
downloadrneovim-54225bdb021e64d09f98201bc0a610e2600b6473.tar.gz
rneovim-54225bdb021e64d09f98201bc0a610e2600b6473.tar.bz2
rneovim-54225bdb021e64d09f98201bc0a610e2600b6473.zip
fix(extmarks): crash with sign after many marks
fixes #27137
Diffstat (limited to 'src/nvim/marktree.c')
-rw-r--r--src/nvim/marktree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/marktree.c b/src/nvim/marktree.c
index dbb4c5a9d3..9fcdf78be3 100644
--- a/src/nvim/marktree.c
+++ b/src/nvim/marktree.c
@@ -1576,7 +1576,9 @@ bool marktree_itr_step_out_filter(MarkTree *b, MarkTreeIter *itr, MetaFilter met
}
itr->i = itr->x->n;
- marktree_itr_next(b, itr); // no filter, just reuse the code for step to parent
+
+ // no filter needed, just reuse the code path for step to parent
+ marktree_itr_next_skip(b, itr, true, false, NULL, NULL);
}
return itr->x;