mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-20 18:11:36 +03:00
Buffer: check that newlines are at the end of lines
This commit is contained in:
parent
f7038980a0
commit
1b53b92267
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user