8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a6c8e9 commit 9b2ca18Copy full SHA for 9b2ca18
src/bin/typos-cli/report.rs
@@ -134,7 +134,7 @@ impl Report for PrintLong {
134
fn print_brief_correction(msg: &Typo, palette: Palette) -> Result<(), std::io::Error> {
135
let start = String::from_utf8_lossy(&msg.buffer[0..msg.byte_offset]);
136
let column_number =
137
- unicode_segmentation::UnicodeSegmentation::graphemes(start.as_ref(), true).count();
+ unicode_segmentation::UnicodeSegmentation::graphemes(start.as_ref(), true).count() + 1;
138
match &msg.corrections {
139
typos::Status::Valid => {}
140
typos::Status::Invalid => {
0 commit comments