Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit 5f0234f

Browse files
committed
Fix Column Offset
1 parent b883480 commit 5f0234f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ fn apply_suggestion(suggestion: &Suggestion) -> Result<(), ProgramError> {
309309
.nth(suggestion.line_range.end.line - 1)
310310
.unwrap_or("")
311311
.chars()
312-
.skip(suggestion.line_range.end.column)
312+
.skip(suggestion.line_range.end.column - 1)
313313
.collect::<String>());
314314

315315
// Add the lines after the section we want to replace

0 commit comments

Comments
 (0)