diff options
author | delphij <delphij@FreeBSD.org> | 2009-07-29 09:20:32 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2009-07-29 09:20:32 +0000 |
commit | a1420f2d09d95e286325db1a123862cb8a6fb33d (patch) | |
tree | 4fdfa6d784030f8906ba6b58fa39cec909b27661 /contrib/less/opttbl.c | |
parent | 7b17971146d9d04f6fdfc56456eda87bddfb201f (diff) | |
parent | a169eab989211273bac7f266a725febc6d6767ef (diff) | |
download | FreeBSD-src-a1420f2d09d95e286325db1a123862cb8a6fb33d.zip FreeBSD-src-a1420f2d09d95e286325db1a123862cb8a6fb33d.tar.gz |
Update less to v436. This is considered as a bugfix release from vendor.
Major changes from v429:
* Don't pass "-" to non-pipe LESSOPEN unless it starts with "-".
* Allow a fraction as the argument to the -# (--shift) option.
* Fix highlight bug when underlined/overstruck text matches at end of line.
* Fix non-regex searches with ctrl-R.
Approved by: re (kensmith, kib)
Diffstat (limited to 'contrib/less/opttbl.c')
-rw-r--r-- | contrib/less/opttbl.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/less/opttbl.c b/contrib/less/opttbl.c index 6fc6ac2..c96b333 100644 --- a/contrib/less/opttbl.c +++ b/contrib/less/opttbl.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1984-2008 Mark Nudelman + * Copyright (C) 1984-2009 Mark Nudelman * * You may distribute under the terms of either the GNU General Public * License or the Less License, as specified in the README file. @@ -41,6 +41,7 @@ public int force_open; /* Open the file even if not regular file */ public int swindow; /* Size of scrolling window */ public int jump_sline; /* Screen line of "jump target" */ public long jump_sline_fraction = -1; +public long shift_count_fraction = -1; public int chopline; /* Truncate displayed lines at screen width */ public int no_init; /* Disable sending ti/te termcap strings */ public int no_keypad; /* Disable sending ks/ke termcap strings */ @@ -419,10 +420,10 @@ static struct loption option[] = { NULL, NULL, NULL } }, { '#', £_optname, - NUMBER, 0, &shift_count, NULL, + STRING, 0, NULL, opt_shift, { "Horizontal shift: ", - "Horizontal shift %d positions", + "0123456789.", NULL } }, |