diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-01-25 22:36:05 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-01-25 22:36:05 +0000 |
| commit | 42966317b8c91f907a681dabdce2d0fdb17bbbd9 (patch) | |
| tree | ec534f5c2886480f87ed19c3f2d41a6ba4d18a1b /src/buffer.cc | |
| parent | 79954e89ab1bb41295501159c72708b24303eb77 (diff) | |
Tweak SharedString
Diffstat (limited to 'src/buffer.cc')
| -rw-r--r-- | src/buffer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.cc b/src/buffer.cc index 629842e2..5677bf35 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -32,7 +32,7 @@ Buffer::Buffer(String name, Flags flags, BufferLines lines, for (auto& line : lines) { - kak_assert(not line->length == 0 and line->data[line->length-1] == '\n'); + kak_assert(not line->length == 0 and line->data()[line->length-1] == '\n'); } static_cast<BufferLines&>(m_lines) = std::move(lines); @@ -173,7 +173,7 @@ void Buffer::reload(BufferLines lines, time_t fs_timestamp) for (auto& line : lines) { - kak_assert(not line->length == 0 and line->data[line->length-1] == '\n'); + kak_assert(not line->length == 0 and line->data()[line->length-1] == '\n'); if (not (m_flags & Flags::NoUndo)) m_current_undo_group.emplace_back( Modification::Insert, line_count()-1, m_lines.back()); |
