summaryrefslogtreecommitdiff
path: root/src/context.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2023-10-25 21:06:52 +1100
committerMaxime Coste <mawww@kakoune.org>2023-10-25 21:06:52 +1100
commit2fa55be40a787be71f4360fd4e36b7a790c74fa6 (patch)
tree4ba6c0bc844f2d4ce6a004ae71ef52aa21f95448 /src/context.hh
parent96884193ddad76530a09a1b095180b0ca8257b7c (diff)
Default comparison operators that can be
Diffstat (limited to 'src/context.hh')
-rw-r--r--src/context.hh5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/context.hh b/src/context.hh
index 846855a2..fca4ba06 100644
--- a/src/context.hh
+++ b/src/context.hh
@@ -28,10 +28,7 @@ struct JumpList
const SelectionList& backward(Context& context, int count);
void forget_buffer(Buffer& buffer);
- friend bool operator==(const JumpList& lhs, const JumpList& rhs)
- {
- return lhs.m_jumps == rhs.m_jumps and lhs.m_current == rhs.m_current;
- }
+ friend bool operator==(const JumpList& lhs, const JumpList& rhs) = default;
size_t current_index() const { return m_current; }