Skip to content

Commit

Permalink
fix: show EOF context in diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Clemens committed Jul 10, 2018
1 parent f4bbbe3 commit 8c18a98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webserver/src/routes/web/pastes/revisions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ fn get(username: String, id: PasteId, config: State<Config>, user: OptionalWebUs
let line_str = ::std::str::from_utf8(line.content()).unwrap();
match line.origin() {
'+' | '-' | ' ' => hunk.diff.push(line.origin()),
'=' | '>' | '<' => {},
'F' => {
let name = delta.new_file().path()
.or_else(|| delta.old_file().path())
Expand Down

0 comments on commit 8c18a98

Please sign in to comment.