Add sanity check

This commit is contained in:
Maxime Coste 2016-07-15 20:26:58 +01:00
parent 1401c55531
commit 3ddc6eccda

View File

@ -1260,6 +1260,7 @@ public:
auto last_begin = (begin == regions.begin()) ?
ByteCoord{0,0} : (begin-1)->end;
kak_assert(begin <= end);
for (; begin != end; ++begin)
{
if (apply_default and last_begin < begin->begin)