diff options
Diffstat (limited to 'src/buffer.cc')
| -rw-r--r-- | src/buffer.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buffer.cc b/src/buffer.cc index 3c919c19..a73f8fd3 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -225,6 +225,7 @@ bool Buffer::redo() void Buffer::check_invariant() const { +#ifdef KAK_DEBUG ByteCount start = 0; assert(not m_lines.empty()); for (auto& line : m_lines) @@ -234,6 +235,7 @@ void Buffer::check_invariant() const assert(line.content.back() == '\n'); start += line.length(); } +#endif } void Buffer::do_insert(const BufferIterator& pos, const String& content) |
