mirror of
https://github.com/latex-lsp/texlab.git
synced 2025-08-04 02:39:21 +00:00
Fix detection of current section
This commit is contained in:
parent
dac122dcea
commit
5828ff6e63
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue