Import less-443.
authorPeter Avalos <pavalos@dragonflybsd.org>
Sat, 30 Apr 2011 21:49:52 +0000 (11:49 -1000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sat, 30 Apr 2011 21:49:52 +0000 (11:49 -1000)
commit25ce721e83857f681d5710047f54dffc9aefb86c
tree3f338eeca13f65e0343268eb7367de85eb0e1d6c
parenta9adbba38b4afd16e01e2527dd528d57cd04e507
Import less-443.

* Change search behavior such that when a search is given an explicit
  pattern, the entire displayed screen is included in the search and
  not just the portion after the target line.

* Add -A option to change search behavior to the old way: only
  the portion of the screen after the target line is searched.

* Add %F formatting to prompt strings, replaced by the last component
  of the input file.

* Control-G while editing a command exits the command.

* Less now exits with status 2 if control-C is pressed and -K is in effect.

* Fix "ungetc overflow" when passing long commands via the -p option.

* Fix bug in using line filtering via the & command
  in combination with -i and -I.

* Fix bug in handling negative arguments to the -j option.

* Fix bug in handling %t in prompt strings.

* Improve handling of long option names.

* Improve percentage calculation for very large files.
50 files changed:
contrib/less/LICENSE
contrib/less/NEWS
contrib/less/brac.c
contrib/less/ch.c
contrib/less/charset.c
contrib/less/charset.h
contrib/less/cmd.h
contrib/less/cmdbuf.c
contrib/less/command.c
contrib/less/cvt.c
contrib/less/decode.c
contrib/less/edit.c
contrib/less/filename.c
contrib/less/forwback.c
contrib/less/funcs.h
contrib/less/help.c
contrib/less/ifile.c
contrib/less/input.c
contrib/less/jump.c
contrib/less/less.h
contrib/less/less.nro
contrib/less/lessecho.c
contrib/less/lessecho.nro
contrib/less/lesskey.c
contrib/less/lesskey.h
contrib/less/lesskey.nro
contrib/less/lglob.h
contrib/less/line.c
contrib/less/linenum.c
contrib/less/lsystem.c
contrib/less/main.c
contrib/less/mark.c
contrib/less/optfunc.c
contrib/less/option.c
contrib/less/option.h
contrib/less/opttbl.c
contrib/less/os.c
contrib/less/output.c
contrib/less/pattern.c
contrib/less/pattern.h
contrib/less/pckeys.h
contrib/less/position.c
contrib/less/position.h
contrib/less/prompt.c
contrib/less/screen.c
contrib/less/search.c
contrib/less/signal.c
contrib/less/tags.c
contrib/less/ttyin.c
contrib/less/version.c