summaryrefslogtreecommitdiff
path: root/support/texlab/crates/texlab/src/util/cursor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/crates/texlab/src/util/cursor.rs')
-rw-r--r--support/texlab/crates/texlab/src/util/cursor.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/support/texlab/crates/texlab/src/util/cursor.rs b/support/texlab/crates/texlab/src/util/cursor.rs
index 8db642c0bf..b03036386c 100644
--- a/support/texlab/crates/texlab/src/util/cursor.rs
+++ b/support/texlab/crates/texlab/src/util/cursor.rs
@@ -229,14 +229,14 @@ impl<'a, T> CursorContext<'a, T> {
}
}
- pub fn find_environment_name(&self) -> Option<(String, TextRange)> {
- let (name, range, group) = self.find_curly_group_word()?;
+ pub fn find_environment_name(&self) -> Option<TextRange> {
+ let (_, range, group) = self.find_curly_group_word()?;
if !matches!(group.syntax().parent()?.kind(), latex::BEGIN | latex::END) {
return None;
}
- Some((name, range))
+ Some(range)
}
pub fn find_environment(&self) -> Option<(latex::Key, latex::Key)> {