diff options
| author | Maxime Coste <mawww@kakoune.org> | 2023-10-25 21:06:52 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2023-10-25 21:06:52 +1100 |
| commit | 2fa55be40a787be71f4360fd4e36b7a790c74fa6 (patch) | |
| tree | 4ba6c0bc844f2d4ce6a004ae71ef52aa21f95448 /src/line_modification.hh | |
| parent | 96884193ddad76530a09a1b095180b0ca8257b7c (diff) | |
Default comparison operators that can be
Diffstat (limited to 'src/line_modification.hh')
| -rw-r--r-- | src/line_modification.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/line_modification.hh b/src/line_modification.hh index b9c9cfcd..75bacdbd 100644 --- a/src/line_modification.hh +++ b/src/line_modification.hh @@ -20,6 +20,8 @@ struct LineModification LineCount num_added; // number of lines added (including this one) LineCount diff() const { return new_line - old_line + num_added - num_removed; } + + friend bool operator==(const LineModification& lhs, const LineModification& rhs) = default; }; Vector<LineModification> compute_line_modifications(const Buffer& buffer, size_t timestamp); |
