aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/git-sugapply.rs
diff options
context:
space:
mode:
authorTeddy Wing2020-07-25 23:25:36 +0200
committerTeddy Wing2020-07-25 23:25:36 +0200
commit74210fa2fd90c5b7cae91f7ea6f4e1f64a597198 (patch)
tree1342c4c93f969a6b5400fe9b8e5c74695946d7dd /src/bin/git-sugapply.rs
parentb4a7561ccc1ed7dab6cd2c786902dec8c4ad9be6 (diff)
downloadgit-suggestion-74210fa2fd90c5b7cae91f7ea6f4e1f64a597198.tar.bz2
Suggestion.apply_to(): Fix single-line patches
Single-line changes weren't getting applied, because if only a single line changed, the `original_start_line` field is null. That caused the first `if` branch to always evaluate to true. Swap the `if` branches to fix this.
Diffstat (limited to 'src/bin/git-sugapply.rs')
0 files changed, 0 insertions, 0 deletions