From 8f73d3c173b8cb3c5ff027996ea6779c2c7a7ed5 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 25 Jul 2013 00:18:50 +0200 Subject: [PATCH] fix last eol matching in regex highlighters --- src/highlighters.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/highlighters.cc b/src/highlighters.cc index 50cf1aa8..1288f08f 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -106,7 +106,7 @@ private: m_cache_matches.clear(); m_cache_range.first = buffer.clamp({range.first.line - 10, 0}); - m_cache_range.second = buffer.clamp({range.second.line + 10, INT_MAX}); + m_cache_range.second = buffer.next(buffer.clamp({range.second.line + 10, INT_MAX})); m_cache_timestamp = buffer.timestamp(); RegexIterator re_it{buffer.iterator_at(m_cache_range.first),