1-based columns

This commit is contained in:
Aleksey Kladov 2020-02-16 18:30:48 +01:00
parent 0f79ec76d6
commit ca7e9ab0da

View file

@ -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 {