top: fix a regression associated with USE_X_COLHDR
When sort column header emphasis was extended to a
monochrome screen, the ability to emphasize selections
on the Fields Management screen was lost when colors
were not being displayed.
This patch corrects that bug by using the capclr_hdr
terminfo string instead of capclr_msg.
Reference:
commit 0c6aa6af41
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
42fe8a9f39
commit
488aa10d33
@ -1597,7 +1597,7 @@ static void display_fields (int focus, int extend) {
|
||||
char sbuf[xSUFX+1];
|
||||
int b = FLDviz(w, i);
|
||||
FLG_t f = FLDget(w, i);
|
||||
const char *h, *e = (i == focus && extend) ? w->capclr_msg : "";
|
||||
const char *h, *e = (i == focus && extend) ? w->capclr_hdr : "";
|
||||
|
||||
// advance past leading header spaces and prep sacrificial suffix
|
||||
for (h = Fieldstab[f].head; ' ' == *h; ++h) ;
|
||||
@ -1608,7 +1608,7 @@ static void display_fields (int focus, int extend) {
|
||||
, b ? '*' : ' '
|
||||
, b ? w->cap_bold : Cap_norm
|
||||
, e
|
||||
, i == focus ? w->capclr_msg : ""
|
||||
, i == focus ? w->capclr_hdr : ""
|
||||
, h
|
||||
, Cap_norm
|
||||
, b ? w->cap_bold : ""
|
||||
|
Loading…
Reference in New Issue
Block a user