mirror of https://github.com/tstack/lnav.git
[highlight] for format highlights, only set semantic color if nothing else is specified
Fixes #1016
This commit is contained in:
parent
d22727242a
commit
40037b0fd1
|
@ -1142,8 +1142,12 @@ looper()
|
|||
|
||||
for (const auto& format : log_format::get_root_formats()) {
|
||||
for (auto& hl : format->lf_highlighters) {
|
||||
hl.with_attrs(hl.h_attrs
|
||||
| vc.attrs_for_ident(hl.h_pattern));
|
||||
if (hl.h_fg.empty() && hl.h_bg.empty()
|
||||
&& hl.h_attrs.empty())
|
||||
{
|
||||
hl.with_attrs(hl.h_attrs
|
||||
| vc.attrs_for_ident(hl.h_pattern));
|
||||
}
|
||||
|
||||
lnav_data.ld_views[LNV_LOG].get_highlights()[{
|
||||
highlight_source_t::CONFIGURATION,
|
||||
|
|
Loading…
Reference in New Issue