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

First try at replacing partials lines #7

Merged
merged 3 commits into from
Jul 11, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix Column Offset
  • Loading branch information
killercup committed Jul 9, 2016
commit 5f0234f2f5ae4f781ea79225b78ac54d3babc41a
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ fn apply_suggestion(suggestion: &Suggestion) -> Result<(), ProgramError> {
.nth(suggestion.line_range.end.line - 1)
.unwrap_or("")
.chars()
.skip(suggestion.line_range.end.column)
.skip(suggestion.line_range.end.column - 1)
.collect::<String>());

// Add the lines after the section we want to replace
Expand Down