]> granicus.if.org Git - procps-ng/commitdiff
top: cleanup of miscellaneous stuff from prior commits
authorJim Warner <james.warner@comcast.net>
Fri, 27 May 2022 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Tue, 31 May 2022 10:35:44 +0000 (20:35 +1000)
Fix some errors introduced in the commits shown below.

Reference(s):
. Apr, 2022 - 'keys_global' missed redundancy
commit 27f5904edd3772a2f3f66ac62148dee636295933
. Apr, 2022 - added extraneous comma in help text
commit fb32021eeb6f78f01bf455231423a162c9766408

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c
top/top_nls.c

index b9c78193926e236584580f0b594a9cd8318b69cf..4ffcccd13baf1630ab6cd7726cd52845fc63a26f 100644 (file)
--- a/top/top.c
+++ b/top/top.c
@@ -5509,12 +5509,11 @@ static void keys_global (int ch) {
          }
          break;
       case 'X':
-      {  int wide = get_int(fmtmk(N_fmt(XTRA_fixwide_fmt), Rc.fixed_widest));
-         if (wide > GET_NUM_NOT) {
-            if (wide >= 0 && wide <= SCREENMAX) Rc.fixed_widest = wide;
+         num = get_int(fmtmk(N_fmt(XTRA_fixwide_fmt), Rc.fixed_widest));
+         if (num > GET_NUM_NOT) {
+            if (num >= 0 && num <= SCREENMAX) Rc.fixed_widest = num;
             else Rc.fixed_widest = -1;
          }
-      }
          break;
       case 'Y':
          if (!Inspect.total)
index f54daa383afa3aa49599be481b6ac22ad947adf1..1619836bc7e022410b242f23e0a7c84bb9a0d27f 100644 (file)
@@ -729,7 +729,7 @@ static void build_uniq_nlstab (void) {
    .                 also imbedded in the translatable text (along with escape seqs)
    .                 should never themselves be translated. */
    Uniq_nlstab[KEYS_helpext_fmt] = _(""
-      "  d,k,r,^R, '~1d~2' set delay; '~1k~2' kill; '~1r~2' renice; ~1Ctrl~2+'~1R~2' renice autogroup\n");
+      "  d,k,r,^R '~1d~2' set delay; '~1k~2' kill; '~1r~2' renice; ~1Ctrl~2+'~1R~2' renice autogroup\n");
 
 /* Translation Hint:
    .  This Fields Management header should be 3 lines long so as