Skip to content

Commit 338454a

Browse files
committed
1 parent e0ed767 commit 338454a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/strings/annotated.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ function _insert_annotations!(io::AnnotatedIOBuffer, annotations::Vector{Tuple{U
596596
for i in reverse(axes(annotations, 1))
597597
annot = annotations[i]
598598
first(first(annot)) == 1 || continue
599+
i <= length(io.annotations) || continue
599600
if last(annot) == last(last(io.annotations))
600601
valid_run = true
601602
for runlen in 1:i

0 commit comments

Comments
 (0)