summaryrefslogtreecommitdiff
path: root/support/texlab/src/features/highlight/label.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/src/features/highlight/label.rs')
-rw-r--r--support/texlab/src/features/highlight/label.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/texlab/src/features/highlight/label.rs b/support/texlab/src/features/highlight/label.rs
index 2ae66d5c47..e362295b04 100644
--- a/support/texlab/src/features/highlight/label.rs
+++ b/support/texlab/src/features/highlight/label.rs
@@ -11,7 +11,7 @@ pub fn find_highlights(context: &CursorContext) -> Option<Vec<DocumentHighlight>
let data = context.document.parse(db).as_tex()?;
let mut highlights = Vec::new();
- let line_index = context.document.contents(db).line_index(db);
+ let line_index = context.document.line_index(db);
for label in data
.analyze(db)
.labels(db)