8000 fix(cli): Report correct column for brief output · crate-ci/typos@9b2ca18 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9b2ca18

Browse files
committed
fix(cli): Report correct column for brief output
1 parent 2a6c8e9 commit 9b2ca18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/typos-cli/report.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ impl Report for PrintLong {
134134
fn print_brief_correction(msg: &Typo, palette: Palette) -> Result<(), std::io::Error> {
135135
let start = String::from_utf8_lossy(&msg.buffer[0..msg.byte_offset]);
136136
let column_number =
137-
unicode_segmentation::UnicodeSegmentation::graphemes(start.as_ref(), true).count();
137+
unicode_segmentation::UnicodeSegmentation::graphemes(start.as_ref(), true).count() + 1;
138138
match &msg.corrections {
139139
typos::Status::Valid => {}
140140
typos::Status::Invalid => {

0 commit comments

Comments
 (0)
0