aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 6c1e58d6f..f42dc49c3 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -14961,10 +14961,12 @@ helpcmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
14961 { 14961 {
14962 const char *a = applet_names; 14962 const char *a = applet_names;
14963 while (*a) { 14963 while (*a) {
14964 col += out1fmt("%c%s", ((col == 0) ? '\t' : ' '), a); 14964 if (is_applet_preferred(a)) {
14965 if (col > 60) { 14965 col += out1fmt("%c%s", ((col == 0) ? '\t' : ' '), a);
14966 out1fmt("\n"); 14966 if (col > 60) {
14967 col = 0; 14967 out1fmt("\n");
14968 col = 0;
14969 }
14968 } 14970 }
14969 while (*a++ != '\0') 14971 while (*a++ != '\0')
14970 continue; 14972 continue;