1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-21 02:21:32 +03:00

Buffer: check that newlines are at the end of lines

This commit is contained in:
Maxime Coste 2013-01-22 14:28:15 +01:00
parent f7038980a0
commit 1b53b92267

View File

@ -238,6 +238,7 @@ void Buffer::check_invariant() const
assert(line.start == start); assert(line.start == start);
assert(line.length() > 0); assert(line.length() > 0);
assert(line.content.back() == '\n'); assert(line.content.back() == '\n');
assert(find(line.content, '\n') == line.content.end()-1);
start += line.length(); start += line.length();
} }
} }