summaryrefslogtreecommitdiff
path: root/src/buffer.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-01-29 22:44:07 +0000
committerMaxime Coste <frrrwww@gmail.com>2015-01-29 22:44:07 +0000
commit804a050c39fbb32db733a9affeee8356152b429d (patch)
tree47e9b504df93d4630dbb9e38c347b472da074068 /src/buffer.hh
parentffff4711c51c1a7aacdd40ab10be03fdcf627455 (diff)
Tweak Buffer::Change layout
Diffstat (limited to 'src/buffer.hh')
-rw-r--r--src/buffer.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.hh b/src/buffer.hh
index 084af636..c3a5dcb2 100644
--- a/src/buffer.hh
+++ b/src/buffer.hh
@@ -158,11 +158,11 @@ public:
struct Change
{
- enum Type { Insert, Erase };
+ enum Type : char { Insert, Erase };
Type type;
+ bool at_end;
ByteCoord begin;
ByteCoord end;
- bool at_end;
};
ArrayView<Change> changes_since(size_t timestamp) const;