diff --git a/src/buffer.cc b/src/buffer.cc index d74af40c..92089e83 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -201,7 +201,7 @@ struct Buffer::Modification case Erase: inverse_type = Insert; break; default: assert(false); } - return Modification(inverse_type, position, content); + return {inverse_type, position, content}; } }; diff --git a/src/buffer.hh b/src/buffer.hh index 9a35bae2..4d8f67b5 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -68,7 +68,7 @@ public: const Buffer& buffer() const; const BufferCoord& coord() const { return m_coord; } - LineCount line() const { return m_coord.line; } + LineCount line() const { return m_coord.line; } ByteCount column() const { return m_coord.column; } ByteCount offset() const;