mirror of
https://github.com/tstack/lnav
synced 2024-11-01 21:40:34 +00:00
[view_curses] Fix for fg colour and reverse attribute for separator bars
Elements of type VC_GRAPHIC used as column separators, when used along with background coloured bars to express numeric column values, maintain alternate-line reversing of colours when inside the bar range and take the foreground color of the last coloured bar on the line even though are not placed in the coloured range of characters. This commit fixes this.
This commit is contained in:
parent
66ec8e553e
commit
4b7c9ef54c
@ -324,6 +324,7 @@ view_curses::mvwattrline(WINDOW* window,
|
||||
|
||||
if (iter->sa_type == &VC_GRAPHIC) {
|
||||
graphic = iter->sa_value.get<int64_t>();
|
||||
attrs = text_attrs{};
|
||||
} else if (iter->sa_type == &VC_STYLE) {
|
||||
attrs = iter->sa_value.get<text_attrs>();
|
||||
} else if (iter->sa_type == &SA_LEVEL) {
|
||||
|
Loading…
Reference in New Issue
Block a user