aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-02-16 17:30:48 +0000
committerAleksey Kladov <[email protected]>2020-02-16 17:30:48 +0000
commitca7e9ab0da4f9a781db1857cd11951d296df24a9 (patch)
tree4efa37ee370248da78eb2d63f1b0c9221b4d90f6
parent0f79ec76d6fd29d851e05c9140192e4505097185 (diff)
1-based columns
-rw-r--r--crates/ra_cli/src/analysis_bench.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_cli/src/analysis_bench.rs b/crates/ra_cli/src/analysis_bench.rs
index a7cc3a2d4..4835a68ce 100644
--- a/crates/ra_cli/src/analysis_bench.rs
+++ b/crates/ra_cli/src/analysis_bench.rs
@@ -92,7 +92,7 @@ pub(crate) fn run(verbose: bool, path: &Path, op: Op) -> Result<()> {
92 let offset = host 92 let offset = host
93 .analysis() 93 .analysis()
94 .file_line_index(file_id)? 94 .file_line_index(file_id)?
95 .offset(LineCol { line: pos.line, col_utf16: pos.column }); 95 .offset(LineCol { line: pos.line - 1, col_utf16: pos.column });
96 let file_postion = FilePosition { file_id, offset }; 96 let file_postion = FilePosition { file_id, offset };
97 97
98 if is_completion { 98 if is_completion {