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:
parent
f7038980a0
commit
1b53b92267
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user