aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bp.14
-rw-r--r--bp.1.md2
-rw-r--r--bp.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/bp.1 b/bp.1
index 1ccca39..403a952 100644
--- a/bp.1
+++ b/bp.1
@@ -1,4 +1,4 @@
-.\" Automatically generated by Pandoc 2.14.0.2
+.\" Automatically generated by Pandoc 2.14.2
.\"
.TH "BP" "1" "May 17 2021" "" ""
.hy
@@ -81,7 +81,7 @@ Set the output format.
line numbers with no coloring, \f[I]bare\f[R] prints only the match
text, \f[I]file:line\f[R] prints the filename and line number for each
match (grep-style), and \f[I]auto\f[R] (the default) uses
-\f[I]fancy\f[R] formatting when the output is a TTY and \f[I]plain\f[R]
+\f[I]fancy\f[R] formatting when the output is a TTY and \f[I]bare\f[R]
formatting otherwise.
.TP
\f[B]-h\f[R], \f[B]--help\f[R]
diff --git a/bp.1.md b/bp.1.md
index 6cf8f50..87892c9 100644
--- a/bp.1.md
+++ b/bp.1.md
@@ -77,7 +77,7 @@ all text before and after each match.
prints line numbers with no coloring, *bare* prints only the match text,
*file:line* prints the filename and line number for each match (grep-style),
and *auto* (the default) uses *fancy* formatting when the output is a TTY and
-*plain* formatting otherwise.
+*bare* formatting otherwise.
`-h`, `--help`
: Print the usage and exit.
diff --git a/bp.c b/bp.c
index 28aa913..b4727cd 100644
--- a/bp.c
+++ b/bp.c
@@ -521,7 +521,7 @@ int main(int argc, char *argv[])
if (options.context_after == USE_DEFAULT_CONTEXT) options.context_after = 0;
if (options.format == FORMAT_AUTO)
- options.format = isatty(STDOUT_FILENO) ? FORMAT_FANCY : FORMAT_PLAIN;
+ options.format = isatty(STDOUT_FILENO) ? FORMAT_FANCY : FORMAT_BARE;
// If any of these signals triggers, and there is a temporary file in use,
// be sure to clean it up before exiting.