From 0b4ecef2d2cbef9f22d5fac5f50bbab96b9f9256 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 31 Jan 2015 23:50:24 +0000 Subject: Rewrite line modifications, hopefully with easier to comprehend code --- src/line_modification.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/line_modification.hh') 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; } }; -- cgit v1.2.3