remove redudant/incorrect view bound check

pull/6417/head
Pascal Kuthe 1 year ago
parent 6d051d7084
commit 7e133167ca
No known key found for this signature in database
GPG Key ID: D715E8655AE166A6

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

Loading…
Cancel
Save