[highlights] a little too quick on the last checkin

This commit is contained in:
Timothy Stack 2019-07-24 13:43:01 -07:00
parent e6590e94e2
commit d381197195

View File

@ -318,9 +318,8 @@ void textview_curses::textview_value_for_row(vis_line_t row,
} }
for (auto &tc_highlight : this->tc_highlights) { for (auto &tc_highlight : this->tc_highlights) {
// XXX testing for '$search' here sucks
bool internal_hl = bool internal_hl =
tc_highlight.first.first != highlight_source_t::INTERNAL; tc_highlight.first.first == highlight_source_t::INTERNAL;
if (tc_highlight.second.h_text_format != text_format_t::TF_UNKNOWN && if (tc_highlight.second.h_text_format != text_format_t::TF_UNKNOWN &&
source_format != tc_highlight.second.h_text_format) { source_format != tc_highlight.second.h_text_format) {