diff options
Diffstat (limited to 'crates/ra_cli/src/analysis_bench.rs')
-rw-r--r-- | crates/ra_cli/src/analysis_bench.rs | 2 |
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 { |