Search results are not reversed for bookmarked lines

Fix #313

Sorry for the delay
pull/545/head
Timothy Stack 6 years ago
parent d7699cfb96
commit 6a3b1f2d94

@ -529,6 +529,11 @@ void view_curses::mvwattrline(WINDOW *window,
mvwin_wchnstr(window, y, x_pos, row_ch, ch_width);
for (int lpc = 0; lpc < ch_width; lpc++) {
bool clear_rev = false;
if (row_ch[lpc].attr & A_REVERSE && attrs & A_REVERSE) {
clear_rev = true;
}
if (color_pair > 0) {
row_ch[lpc].attr =
attrs | (row_ch[lpc].attr & ~A_COLOR);
@ -540,6 +545,10 @@ void view_curses::mvwattrline(WINDOW *window,
} else {
row_ch[lpc].attr |= attrs;
}
if (clear_rev) {
row_ch[lpc].attr &= ~A_REVERSE;
log_debug(" %c %d clear_rev", row_ch[lpc].chars[0], lpc);
}
}
mvwadd_wchnstr(window, y, x_pos, row_ch, ch_width);
}

Loading…
Cancel
Save