remove redudant/incorrect view bound check

This commit is contained in:
Pascal Kuthe 2023-11-19 22:34:08 +01:00
parent 6d051d7084
commit 7e133167ca
No known key found for this signature in database
GPG Key ID: D715E8655AE166A6

View File

@ -393,11 +393,6 @@ pub fn screen_coords_at_pos(
text: RopeSlice,
pos: usize,
) -> Option<Position> {
if pos < self.offset.anchor {
// Line is not visible on screen
return None;
}
let viewport = self.inner_area(doc);
let text_fmt = doc.text_format(viewport.width, None);
let annotations = self.text_annotations(doc, None);