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.length() > 0);
assert(line.content.back() == '\n');
assert(find(line.content, '\n') == line.content.end()-1);
start += line.length();
}
}