summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Warner <james.warner@comcast.net>2023-01-23 00:00:00 -0600
committerCraig Small <csmall@dropbear.xyz>2023-01-24 12:15:19 +1100
commit6b7114884049139c2c8aa43a0e846c6c280bdc93 (patch)
treec4759cb4846f9ccedc69cd492c7abe64c7cdaa4d
parentf9afbabce7bbe54de49d9c0e09e9c9084ab79971 (diff)
downloadprocps-ng-6b7114884049139c2c8aa43a0e846c6c280bdc93.tar.gz
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 <james.warner@comcast.net>
-rw-r--r--src/top/top.c2
1 files changed, 1 insertions, 1 deletions
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