mirror of
https://github.com/tstack/lnav
synced 2024-11-17 15:29:40 +00:00
Search results are not reversed for bookmarked lines
Fix #313 Sorry for the delay
This commit is contained in:
parent
d7699cfb96
commit
6a3b1f2d94
@ -529,6 +529,11 @@ void view_curses::mvwattrline(WINDOW *window,
|
|||||||
|
|
||||||
mvwin_wchnstr(window, y, x_pos, row_ch, ch_width);
|
mvwin_wchnstr(window, y, x_pos, row_ch, ch_width);
|
||||||
for (int lpc = 0; lpc < ch_width; lpc++) {
|
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) {
|
if (color_pair > 0) {
|
||||||
row_ch[lpc].attr =
|
row_ch[lpc].attr =
|
||||||
attrs | (row_ch[lpc].attr & ~A_COLOR);
|
attrs | (row_ch[lpc].attr & ~A_COLOR);
|
||||||
@ -540,6 +545,10 @@ void view_curses::mvwattrline(WINDOW *window,
|
|||||||
} else {
|
} else {
|
||||||
row_ch[lpc].attr |= attrs;
|
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);
|
mvwadd_wchnstr(window, y, x_pos, row_ch, ch_width);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user