top: swat a bug with 3.2.8 support for field additions
This new integer based version of 'fieldscur' deviated a bit too much from that character based logic when it comes to ancient 3.2.8 rcfile support. This results in an inappropriate extra field shown as the last column. If we're truly dealing with 20 year old 3.2.8 rcfiles, it's important the 3.3.9 extension (RCF_PLUS_H) not be concatenated to what was read. That's because a search for the special SUSE characters will always find a '\' in the 26th position (after normal 3.2.8 'fieldscur'). [ for symmetry, we'll also avoid RCF_PLUS_J (3.3.17) ] All other 'old' rcfiles are transformed without error. Reference(s): . Mar, 2022 - 3.2.8 support restores Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
@@ -532,7 +532,7 @@ typedef struct WIN_t {
|
||||
// old top fields ( 'a'-'z' ) in positions 0-25
|
||||
// other suse old top fields ( '{|' ) in positions 26-27
|
||||
#define CVT_FORMER "%&*'(-0346789:;<=>?@ACDEFGML)+,./125BHIJKNOPQRSTUVWXYZ[" RCF_PLUS_H RCF_PLUS_J
|
||||
#define CVT_FLDMAX 26
|
||||
#define CVT_FLDMAX 28
|
||||
|
||||
#ifdef ORIG_TOPDEFS
|
||||
#define DEF_FIELDS { \
|
||||
|
||||
Reference in New Issue
Block a user