mirror of
https://github.com/tstack/lnav
synced 2024-11-01 21:40:34 +00:00
[highlighter] fix string range for pcrepp input
This commit is contained in:
parent
363eb35da3
commit
df082eaf16
@ -89,7 +89,7 @@ highlighter::annotate(attr_line_t& al, int start) const
|
||||
auto& vc = view_colors::singleton();
|
||||
const auto& str = al.get_string();
|
||||
auto& sa = al.get_attrs();
|
||||
auto sf = string_fragment::from_substr(
|
||||
auto sf = string_fragment::from_str_range(
|
||||
str, start, std::min(size_t{8192}, str.size()));
|
||||
|
||||
pcre_context_static<60> pc;
|
||||
|
Loading…
Reference in New Issue
Block a user