Skip to content

Commit

Permalink
adjust index
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLee18 committed Oct 31, 2024
1 parent 245c51f commit ebba390
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/norminette_msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ impl NorminetteMsg {
pub fn find_range(&self) -> Option<Range> {
match self {
NorminetteMsg::Error { line, column, .. } => Some(Range {
start: Position::new(*line as u32, *column as u32),
end: Position::new(*line as u32, (column + 3) as u32),
start: Position::new((line - 1) as u32, (column - 1) as u32),
end: Position::new((line - 1) as u32, (column + 2) as u32),
}),
NorminetteMsg::Ok => None,
}
Expand Down

0 comments on commit ebba390

Please sign in to comment.