From 6b7114884049139c2c8aa43a0e846c6c280bdc93 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Mon, 23 Jan 2023 00:00:00 -0600 Subject: top: restore tab highlight for ^L and ^P bottom window With the commit shown below a BOT_PRESENT constant was introduced. Unfortunately it was defined in a way that disable ^L (message log) and ^P (namespaces) highlight when using the tab key. This patch fixes such an oops. Reference(s): . Jan, 2023 - lessen 'bottom window' overhead commit 28f44729dab9b292a9d5499f8cad6a12c1eb4ae5 Signed-off-by: Jim Warner --- src/top/top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/top/top.c b/src/top/top.c index 6cade5e..ec132e6 100644 --- a/src/top/top.c +++ b/src/top/top.c @@ -105,7 +105,7 @@ static int Screen_cols, Screen_rows, Max_lines; /* These 'SCREEN_ROWS', 'BOT_ and 'Bot_' guys are used in managing the special separate bottom 'window' ... */ #define SCREEN_ROWS ( Screen_rows - Bot_rsvd ) -#define BOT_PRESENT ( Bot_what > 0 ) +#define BOT_PRESENT ( Bot_what != 0 ) #define BOT_ITEMMAX 10 // Bot_item array's max size #define BOT_MSGSMAX 10 // total entries for Msg_tab #define BOT_UNFOCUS -1 // tab focus not established -- cgit v1.2.1