From ca7e9ab0da4f9a781db1857cd11951d296df24a9 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 16 Feb 2020 18:30:48 +0100 Subject: 1-based columns --- crates/ra_cli/src/analysis_bench.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_cli') 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<()> { let offset = host .analysis() .file_line_index(file_id)? - .offset(LineCol { line: pos.line, col_utf16: pos.column }); + .offset(LineCol { line: pos.line - 1, col_utf16: pos.column }); let file_postion = FilePosition { file_id, offset }; if is_completion { -- cgit v1.2.3