aboutsummaryrefslogtreecommitdiffstats
path: root/builtins/help.def
diff options
context:
space:
mode:
Diffstat (limited to 'builtins/help.def')
-rw-r--r--builtins/help.def4
1 files changed, 3 insertions, 1 deletions
diff --git a/builtins/help.def b/builtins/help.def
index 004abe2..f857af9 100644
--- a/builtins/help.def
+++ b/builtins/help.def
@@ -23,7 +23,7 @@ $PRODUCES help.c
$BUILTIN help
$FUNCTION help_builtin
$DEPENDS_ON HELP_BUILTIN
-$SHORT_DOC help [-ds] [pattern ...]
+$SHORT_DOC help [-dms] [pattern ...]
Display information about builtin commands.
Displays brief summaries of builtin commands. If PATTERN is
@@ -350,6 +350,8 @@ A star (*) next to a name means that the command is disabled.\n\
width /= 2;
if (width > sizeof (blurb))
width = sizeof (blurb);
+ if (width <= 3)
+ width = 40;
height = (num_shell_builtins + 1) / 2; /* number of rows */
for (i = 0; i < height; i++)