RegexColorizer: fix last buffer line highlighting
This commit is contained in:
parent
0eaf39b725
commit
3f471c138a
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user