summaryrefslogtreecommitdiff
path: root/src/line_modification.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-01-31 23:50:24 +0000
committerMaxime Coste <frrrwww@gmail.com>2015-01-31 23:50:24 +0000
commit0b4ecef2d2cbef9f22d5fac5f50bbab96b9f9256 (patch)
tree57146575bfd853bb4a9fa61b6fd22be6d9fc54a5 /src/line_modification.hh
parentb4661e37d28dd14ff9e14175e5d2d40f8f19365b (diff)
Rewrite line modifications, hopefully with easier to comprehend code
Diffstat (limited to 'src/line_modification.hh')
-rw-r--r--src/line_modification.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/line_modification.hh b/src/line_modification.hh
index d56a65d4..7c21503c 100644
--- a/src/line_modification.hh
+++ b/src/line_modification.hh
@@ -14,8 +14,8 @@ struct LineModification
{
LineCount old_line; // line position in the old buffer
LineCount new_line; // new line position
- LineCount num_removed; // number of lines removed after this one
- LineCount num_added; // number of lines added after this one
+ LineCount num_removed; // number of lines removed (including this one)
+ LineCount num_added; // number of lines added (including this one)
LineCount diff() const { return new_line - old_line + num_added - num_removed; }
};