fix last eol matching in regex highlighters

This commit is contained in:
Maxime Coste 2013-07-25 00:18:50 +02:00
parent 27c422b603
commit 8f73d3c173

View File

@ -106,7 +106,7 @@ private:
m_cache_matches.clear(); m_cache_matches.clear();
m_cache_range.first = buffer.clamp({range.first.line - 10, 0}); 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(); m_cache_timestamp = buffer.timestamp();
RegexIterator re_it{buffer.iterator_at(m_cache_range.first), RegexIterator re_it{buffer.iterator_at(m_cache_range.first),