mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-24 10:26:18 +04:00
remove redudant/incorrect view bound check
This commit is contained in:
parent
6d051d7084
commit
7e133167ca
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user