Fix detection of current section

This commit is contained in:
Patrick Förster 2019-07-30 19:26:41 +02:00
parent dac122dcea
commit 5828ff6e63

View file

@ -18,7 +18,7 @@ impl<'a> Outline<'a> {
.iter()
.filter(|sec| sec.document.uri == *uri)
.rev()
.find(|sec| sec.item.end() < position)
.find(|sec| sec.item.end() <= position)
.map(|sec| sec.item)
}
}