remove redudant/incorrect view bound check

pull/6417/head
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
1 changed files with 0 additions and 5 deletions

View File

@ -393,11 +393,6 @@ impl View {
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);