Skip to content

Commit

Permalink
Add one
Browse files Browse the repository at this point in the history
  • Loading branch information
azdavis committed Jan 19, 2025
1 parent c47fce1 commit e44479a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/text-pos/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ pub struct RangeUtf16 {
impl fmt::Display for RangeUtf16 {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
if self.start.line == self.end.line {
write!(f, "{}-{}", self.start, self.end.col)
write!(f, "{}-{}", self.start, self.end.col + 1)
} else {
write!(f, "{}-{}", self.start, self.end)
}
Expand Down

0 comments on commit e44479a

Please sign in to comment.