summaryrefslogtreecommitdiffstats
path: root/contrib/less/opttbl.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2007-11-16 22:22:17 +0000
committerdelphij <delphij@FreeBSD.org>2007-11-16 22:22:17 +0000
commite2b0c4a1d9f9f53e73cf7da116a4546c07cde418 (patch)
tree0c9762eeda7d2def39527db440983a3ea2c88c41 /contrib/less/opttbl.c
parent9680b7d49a594123cfffb2bc9d11614d1a2625d0 (diff)
downloadFreeBSD-src-e2b0c4a1d9f9f53e73cf7da116a4546c07cde418.zip
FreeBSD-src-e2b0c4a1d9f9f53e73cf7da116a4546c07cde418.tar.gz
Virgin import of less v415.
Diffstat (limited to 'contrib/less/opttbl.c')
-rw-r--r--contrib/less/opttbl.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/contrib/less/opttbl.c b/contrib/less/opttbl.c
index 2514463..755a93d 100644
--- a/contrib/less/opttbl.c
+++ b/contrib/less/opttbl.c
@@ -50,7 +50,8 @@ public int shift_count; /* Number of positions to shift horizontally */
public int status_col; /* Display a status column */
public int use_lessopen; /* Use the LESSOPEN filter */
public int quit_on_intr; /* Quit on interrupt */
-public int oldbot; /* Old bottom of screen behavior */
+public int follow_mode; /* F cmd Follows file desc or file name? */
+public int oldbot; /* Old bottom of screen behavior {{REMOVE}} */
#if HILITE_SEARCH
public int hilite_search; /* Highlight matched search patterns? */
#endif
@@ -113,6 +114,7 @@ static struct optname query_optname = { "help", NULL };
static struct optname pound_optname = { "shift", NULL };
static struct optname keypad_optname = { "no-keypad", NULL };
static struct optname oldbot_optname = { "old-bot", NULL };
+static struct optname follow_optname = { "follow-name", NULL };
/*
@@ -440,6 +442,14 @@ static struct loption option[] =
NULL
}
},
+ { '.', &follow_optname,
+ BOOL, FOLLOW_DESC, &follow_mode, NULL,
+ {
+ "F command Follows file descriptor",
+ "F command Follows file name",
+ NULL
+ }
+ },
{ '\0', NULL, NOVAR, 0, NULL, NULL, { NULL, NULL, NULL } }
};
OpenPOWER on IntegriCloud