diff --git a/src/highlighters.cc b/src/highlighters.cc index fd1a4567..e60427b4 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -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)