summaryrefslogtreecommitdiffstats
path: root/usr.bin/more
Commit message (Collapse)AuthorAgeFilesLines
* Correctly backspace over number N that preceeds macros.hoek2000-01-081-7/+12
|
* Dedocument one of the BUGS listed in the last commit. The bug (needlesshoek1999-12-281-3/+0
| | | | | | | calculation of line numbers) never existed and the two bugs that made me think it existed have been fixed (see recent commits about this date to linenum.c:r.1.3 and ch.c:r.1.8 fixing broken line-number buffering and braindead algorithms respectively).
* Rather than use an LRU-ordered circular list to store buffered data,hoek1999-12-281-35/+65
| | | | | | | | | | | | | | | simply keep an index into the last access on the circular list and begin searches at that point. An LRU list is inappropriate here since the vast majority of accesses will occur in the same order that the list is created in. The only case where an LRU is remotely useful here is when reading from a file and the user is jumping to randomish positions and constantly returning to some central position. Even for this case it is such a small optimization as not to be noticed in an interactive program such as more(1). This change results in a _tremendously_ noticable speed-up when reading long files through a pipe (where long = ~200k, machine = ~2.5h single-disk worldstone).
* Delete dead code and clean comments a little.hoek1999-12-282-8/+15
|
* Correctly maintain state when manipulating linked lists. This fixes ahoek1999-12-271-3/+8
| | | | | bug that prevented the line-number buffer from working correctly. AFAIK the bug is still present in other derivatives of more(1).
* Initialize unitialized variable from prev. commit.hoek1999-12-271-1/+1
|
* A missing verb to a sentence from last commit.hoek1999-12-261-1/+2
|
* For some reason the HOME key wasn't documented. Document it. Expandhoek1999-12-262-3/+32
| | | | | | the docs on a couple other keys. While I'm here, document another ~3 bugs that have been around for all eternity in the hope that I'll someday bother to fix them.
* Allow excessive backspacing to correctly abort an input (most significantlyhoek1999-12-262-12/+22
| | | | a search string input).
* Expand source comments a little -=> increased readability.hoek1999-12-262-8/+35
|
* Don't disallow null search patterns --- they are interpreted as beinghoek1999-09-141-7/+10
| | | | | | identical to the previous pattern. Noticed-by: Jeroen Ruigrok/Asmodai
* Remove assertion of Shigio Yamaguchi's copyright, by request in bin/13607.hoek1999-09-101-1/+0
|
* Unbroke `make -s' case.ru1999-09-101-3/+3
| | | | | PR: 13676 Submitted by: wollman
* $Id$ -> $FreeBSD$peter1999-09-052-2/+2
|
* Thorough revamp of how input commands are processed. This allows customizationhoek1999-09-0321-818/+2777
| | | | | | | | | | | of user keys (documentation pending). The only key whose semantics have changed is the capital 'N' key, which now performs a repeat-search in the opposite direction (just like in vi). This commit is a little bulkier than what I had originally planned. I'm not completely happy with the direction it went, but it's definately an improvement, and the alternative is to continue becoming irrelevant compared to GNU less. (Does anyone even _use_ /usr/bin/more these days?)
* $Id$ -> $FreeBSD$peter1999-08-2812-12/+12
|
* Don't assume all ctags are meant to match a whole line ("^...line...$").hoek1999-08-171-5/+44
| | | | This lets more(1) work with, for example, /usr/local/share/vim/doc/*.txt.
* Various man page cleanup:mpp1999-08-151-3/+3
| | | | | | | | | - Sort xrefs - Be consistent with section names as outlines in mdoc(7). - Other misc mdoc cleanup. PR: doc/13144 Submitted by: Alexey M. Zelkin <phantom@cris.net>
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-121-0/+1
| | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* - When trying to decide if $EDITOR == "vi", match against only the firsthoek1999-06-051-5/+28
| | | | | | | two characters of $EDITOR. This allows things like "vim" and "vi -G" (although nvi would fail...oh well). - Avoid certain cases where the editor is passed an invalid line number.
* No, the space required for a string is strlen() _plus_ one... Oops.hoek1999-06-041-3/+2
|
* Don't print backspaces in first column since they backup to the prev line.hoek1999-06-021-5/+12
|
* Grok gtags too.hoek1999-06-017-42/+425
|
* General code cleanup [incomplete]. Make the arrow keys work.hoek1999-05-309-91/+339
|
* Document another (less-virulent) CRLF-related bug.hoek1999-05-021-0/+2
|
* Remove documentation of CRLF bug from more.1. Sync code with manpage.hoek1999-04-293-26/+18
| | | | | PR: bin/961 bin/7296 (fix) Submitted by: Garance Alistair Drosehn <gad@eclipse.acs.rpi.edu>
* Ignore (effectively) SIGTSTP if we're already in the process of tstoping.hoek1998-08-031-0/+1
|
* Fix coredump when two signals are sent in rapid succession.hoek1998-07-312-2/+3
| | | | | | | | | PR: bin/5721 Submitted by: Oliver Fromme <oliver.fromme@heim3.tu-clausthal.de> Also, add "volatile" to a variable modified by signal handlers (coincidentally, the same variable involved in the above fix, although this isn't related to the reported problem).
* Fix compilation for the case where neither ioctl(TIOCGWINSZ)hoek1998-07-261-1/+2
| | | | | | | nor ioctl(WIOCGETD) exist. This case doesn't occur under FreeBSD. PR: bin/5996 Submitted by: Max Euston <meuston@jmrodgers.com>
* Really delete -# option.hoek1998-07-251-2/+1
|
* Nuke obsolote and broken -# option.hoek1998-07-252-20/+4
| | | | | | | Order options. PR: bin/5996 Submitted by: Max Euston <meuston@jmrodgers.com>
* Keep "-c" (top_scroll) through viewing help.hoek1998-07-251-1/+6
| | | | | PR: bin/5996 Submitted by: Max Euston <meuston@jmrodgers.com>
* Fix bug from last commit: don't SEGV when reading as part of a pipe.hoek1998-07-041-1/+1
|
* Use '-e' when viewing helpfile.hoek1998-07-031-1/+1
|
* Prevent recursive help)elp)elping.hoek1998-07-031-1/+5
|
* sprintf -> snprintf to avoid potential buffer overflow.steve1998-06-146-21/+27
| | | | | PR: 6907 Submitted by: Archie Cobbs <archie@whistle.com>
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.charnier1998-03-231-2/+3
|
* Add #include <string.h> to get prototypes for functions that gccjb1998-02-205-0/+5
| | | | has builtin (and wants to know that the prototypes match).
* Fix fencepost error.eivind1997-08-121-1/+1
| | | | | PR: 4170 Submitted by: Harlan Stenn <Harlan.Stenn@pfcs.com>
* Add usage().charnier1997-07-292-14/+28
|
* Removed inconsistent declaration of malloc(). `make world' with DESTDIRbde1997-04-231-1/+1
| | | | set to something other than "/" now actually works.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Make more not immediately exit on a short file, if the -e option isjoerg1997-03-022-4/+1
| | | | | | | | | | | | given. This makes more -e basically usable at all when your termcap entry supports an alternate screen buffer (like xterm-r6). I wonder whether we should make more -e the default. Oure more seems to be the only one on the world with this funny behaviour. 2.2 candidate Submitted by: dawes@rf900.physics.usyd.edu.au (David Dawes)
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* include ctype.h to pick isprint macroache1997-01-121-1/+2
|
* Pick collate info for RE character rangesache1996-08-111-1/+1
|
* Document the CRLF bugadam1996-01-221-0/+3
|
* 'more | cat' was producing spurious output from an unused bufferadam1996-01-221-1/+2
|
* Add setlocale LC_CTYPEache1995-10-241-2/+6
|
OpenPOWER on IntegriCloud