mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 05:38:46 +00:00
1-based columns
This commit is contained in:
parent
0f79ec76d6
commit
ca7e9ab0da
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue