add SMALL
using a help file instead of embedding it in the binary
Remove extra `.' from -m prompt string. From Daniel Malament danielm
at bluetiger dot net, PR 6234.
Fix removing of trailing space in file name completion list.
Fix off-by-one when moving a line to the end of the buffer.  Instead
of doing our own memmove() (incorrectly) just use memmove().
Bug found by Matthias Scheler <tron@zhadum.de>.
OK deraadt@ henning@ krw@
When reallocating the line buffer, double the existing buffer
size instead of just incrementing it by LINEBUF_SIZE and use realloc()
+ memset() instead of calloc() + memcpy().  Prevents excessive resource
usage when displaying very long lines.  OK deraadt@, krw@ and otto@
Fix recovery of realloc failure, which causes a segv on files with
very lone lines, as reported by Steffen Wendzel.  ok deraadt@

When reallocating the line buffer, double the existing buffer
size instead of just incrementing it by LINEBUF_SIZE and use realloc()
+ memset() instead of calloc() + memcpy().  Prevents excessive resource
usage when displaying very long lines.  OK deraadt@, krw@ and otto@
Use interruptible syscalls instead of setjmp/longjmp. This make
less's signal handlers safe. No one has reported problems so far...
Incorporate less modifications for more
It turns out that POSIX specifies more should prompt with the file name,
not --More-- like the old UCB more did.  Back out a hack I did to
make the prompt look like the old UCB more.
Call fsync() _after_ tcsetattr() and pass tcsetattr the TCSASOFT
flag. Seems to help the occasional problem with messed up terminal
input after suspending less.
remove unneed SMALL
Repair interrupted reads; fixes ^Z. OK deraadt@
Don't create a history file called -... doh. Pointed out by jmc.
Reverse the default of the -c flag from off to on to prevent the text
being displayed in the wrong place initially and then jumping when first
redrawn (such as when searching).

ok deraadt sthen
Quit if write(2) returns -1 when writing to the tty, which can
happen if the tty is revoked.  OK deraadt@
fix a leak in an error path
ok krw@ deraadt@
In "more" mode, POSIX says the command specified by the -p option
should apply to every edited file, not just the first one.  It is
equivalent to less's ++ option.  Patch sent to upstream.  OK shadchin@
Unlike less, more should use basic regular expressions.
OK schwarze@
Use volatile sig_atomic_t, not int, for the sigs variable. Also
move the call to bell() out of u_interrupt() (a signal handler).
OK and with help from deraadt@