remove incorrect assert

This assert was added during early development of #5420 and makes no
sense with the current code. We simply forgot to remove it.
This commit is contained in:
Pascal Kuthe 2023-03-22 18:41:56 +01:00 committed by Blaž Hrastnik
parent c8fde8b6f9
commit 0ab96cc257

View File

@ -175,7 +175,6 @@ pub fn render_text<'t>(
text_annotations, text_annotations,
); );
row_off += offset.vertical_offset; row_off += offset.vertical_offset;
assert_eq!(0, offset.vertical_offset);
let (mut formatter, mut first_visible_char_idx) = let (mut formatter, mut first_visible_char_idx) =
DocumentFormatter::new_at_prev_checkpoint(text, text_fmt, text_annotations, offset.anchor); DocumentFormatter::new_at_prev_checkpoint(text, text_fmt, text_annotations, offset.anchor);