RegexColorizer: fix last buffer line highlighting

This commit is contained in:
Maxime Coste 2012-08-21 20:53:23 +02:00
parent 0eaf39b725
commit 3f471c138a

View File

@ -103,8 +103,8 @@ private:
return; return;
m_cache_matches.clear(); m_cache_matches.clear();
m_cache_range.first = buf.iterator_at({range.first.line() - 10, 0}); m_cache_range.first = buf.iterator_at_line_begin(range.first.line() - 10);
m_cache_range.second = buf.iterator_at({range.second.line() + 10, 0}); m_cache_range.second = buf.iterator_at_line_end(range.second.line() + 10);
m_cache_timestamp = buf.timestamp(); m_cache_timestamp = buf.timestamp();
RegexIterator re_it(m_cache_range.first, m_cache_range.second, m_regex); RegexIterator re_it(m_cache_range.first, m_cache_range.second, m_regex);