summaryrefslogtreecommitdiffstats
path: root/contrib/less/option.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2013-05-13 06:52:46 +0000
committerdelphij <delphij@FreeBSD.org>2013-05-13 06:52:46 +0000
commit125cfd090f2af4935b7cbe526d98acec194a0b51 (patch)
treedae8c7ca2bd0438fe94a32ba65e342b324b29906 /contrib/less/option.c
parent05a725b2d7d8814e7c9604b2ee91737853586bb3 (diff)
downloadFreeBSD-src-125cfd090f2af4935b7cbe526d98acec194a0b51.zip
FreeBSD-src-125cfd090f2af4935b7cbe526d98acec194a0b51.tar.gz
MFV: less v458.
MFC after: 2 weeks
Diffstat (limited to 'contrib/less/option.c')
-rw-r--r--contrib/less/option.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/less/option.c b/contrib/less/option.c
index cd45281..2c26dc6 100644
--- a/contrib/less/option.c
+++ b/contrib/less/option.c
@@ -30,6 +30,7 @@ extern int screen_trashed;
extern int less_is_more;
extern int quit_at_eof;
extern char *every_first_cmd;
+extern int opt_use_backslash;
/*
* Return a printable description of an option.
@@ -578,7 +579,7 @@ optstring(s, p_str, printopt, validchars)
for (p = s; *p != '\0'; p++)
{
- if (*p == '\\' && p[1] != '\0')
+ if (opt_use_backslash && *p == '\\' && p[1] != '\0')
{
/* Take next char literally. */
++p;
OpenPOWER on IntegriCloud