Skip to content

Commit

Permalink
fix: off by one spans
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalabru committed Jan 6, 2022
1 parent 0ec64cf commit c724911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lsp/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub fn convert_clarity_diagnotic_to_lsp_diagnostic(diagnostic: ClarityDiagnostic
_ => Range {
start: Position {
line: diagnostic.spans[0].start_line - 1,
character: diagnostic.spans[0].start_column,
character: diagnostic.spans[0].start_column - 1,
},
end: Position {
line: diagnostic.spans[0].end_line - 1,
Expand Down

0 comments on commit c724911

Please sign in to comment.