From c493fca892f89370d02501f01916436aaec02995 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Sat, 12 Mar 2022 00:00:00 -0600 Subject: [PATCH] top: warn of man page impact if 'USE_X_COLHDR' defined This warning was added after discovering openSUSE uses the option with (at least) their 'tumbleweed' version. The man document sections impacted are: 4e, 5d and 5e. That is where it was asserted sort column highlighting would be temporarily turned off if search ('L') and/or filtering ('O') is active. This option makes it false. [ shame on suse for not also correcting the man page ] Signed-off-by: Jim Warner --- top/top.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/top/top.h b/top/top.h index 7ba44df4..773e5d18 100644 --- a/top/top.h +++ b/top/top.h @@ -576,6 +576,9 @@ typedef struct WIN_t { #if defined(SCALE_FORMER) && defined(SCALE_POSTFX) # warning 'SCALE_POSTFX' is ignored when 'SCALE_FORMER' is active #endif +#if defined(USE_X_COLHDR) +# warning 'USE_X_COLHDR' makes parts of man page misleading (4e, 5d & 5e) +#endif /*###### Some Prototypes (ha!) #########################################*/