summaryrefslogtreecommitdiff
path: root/support/texlab/crates/commands/src/fwd_search.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/crates/commands/src/fwd_search.rs')
-rw-r--r--support/texlab/crates/commands/src/fwd_search.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/support/texlab/crates/commands/src/fwd_search.rs b/support/texlab/crates/commands/src/fwd_search.rs
index c458f33cf1..fc0a130f86 100644
--- a/support/texlab/crates/commands/src/fwd_search.rs
+++ b/support/texlab/crates/commands/src/fwd_search.rs
@@ -32,6 +32,7 @@ pub enum ForwardSearchError {
LaunchViewer(#[from] std::io::Error),
}
+#[derive(Debug)]
pub struct ForwardSearch {
program: String,
args: Vec<String>,
@@ -79,7 +80,7 @@ impl ForwardSearch {
let tex_path = tex_path.to_string_lossy().into_owned();
let pdf_path = pdf_path.to_string_lossy().into_owned();
- let line = line.unwrap_or_else(|| child.line_index.line_col(child.cursor).line);
+ let line = line.unwrap_or_else(|| child.cursor.line);
let line = (line + 1).to_string();
let program = config.program.clone();