From 3ddc6eccdacd4099fbef098451ad378a7c9f8d92 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 15 Jul 2016 20:26:58 +0100 Subject: [PATCH] Add sanity check --- src/highlighters.cc | 1 + 1 file changed, 1 insertion(+) 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)