summaryrefslogtreecommitdiff
path: root/usr.bin/vi
AgeCommit message (Collapse)Author
2003-11-17Various typo fixes from Jonathon Gray via jmc@openbsd.wiz
2003-11-14s/awk/${AWK}/matt
2003-10-21Rework how MAKEVERBOSE operates:lukem
* Don't bother prefixing commands with a line of ${_MKCMD}\ and instead rely upon "make -s". This is less intrusive on all the Makefiles than the former. Idea from David Laight. * Rename the variables use to print messages. The scheme now is: _MKMSG_FOO Run _MKMSG 'foo' _MKTARGET_FOO Run _MKMSG_FOO ${.TARGET} From discussion with Alistair Crooks.
2003-10-19support MAKEVERBOSElukem
2003-09-09PR# bin/22736: Allow unsorted tags file to work. If the initial binaryerh
search fails to find a matching tag in any of the tags files, try a full linear search.
2003-08-28Add options_def.h to DPSRCS and CLEANFILESdsl
2003-08-28Use the options.awk script to generate options_def.h (as in nvi distribution).dsl
Modify options.awk to detect an incorrectly sorted options array. NB: if GTAGS is undefined theses sources will still generate invalid programs.
2003-08-28Fix typo in 'help', bump date in vi.1dsl
2003-08-28Add definition of matchcharsdsl
2003-08-28Make the order of these defines match the correctly sorted definitiondsl
in options.c. Is there any reason why we don't use options.awk so this file would always be correct? (especially if the awk script checked the sort)
2003-08-28Bump for inclusion of :set matcharsdsl
2003-08-28can't print size_t with %dmrg
2003-08-27Increase maximum terminal size from 500x500 to 4000x4000.dsl
Add a 'matchchars' option to set the character pairs that % looks for. Traditionally this was []{}() but someone added <> to nvi - probably for editing html, but it is a pain for C. :set matchars=[]{}() will restore the traditional behaviour. If the 'open' and 'close' characters are the same (eg "" or '') then % will alternate forwards and backwards searches. Use common code to detect options that must have an even number of characters.
2003-08-27Coorectly sort options table (it is searched with a binary chop).dsl
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-07-10Rename a large chunk of the make(1) variables which refer to alukem
program/tool from "FOO" to "TOOL_FOO". The new variables are: TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC For each, provide default in <bsd.sys.mk> of the form: TOOL_FOO?= foo and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override: TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo Document all of these in bsd.README. This cleans up a chunk of potential (and actual) namespace collision within our build infrastructure, as well as improves consistency in the share/mk documentation and provision of appropriate defaults for each of these variables.
2003-06-06bump to nb9 after fixing PR#21797.aymeric
"flooding nvi['s insert mode] leads it to dump core"
2003-06-06When an error occurs in v_txt(), leave input mode too.aymeric
Otherwise, (among other things) db_get() thinks it can re-use the TEXT buffers when it's not true, leading to a crash because that TEXT buffer will be released just before it is actually used to create a new one. This fixes PR#21797.
2003-04-18improve on previous. only adjust the length when it exceed the string length.christos
2003-04-18Recovery of vi files has been broken for a long while. This patch is achristos
stopgap measure to make vi recovery mostly functional on non-binary files. The problem is that the db holding the recovery file can become corrupted, in which case the data size of the line becomes huge. We use heuristics to correct the size when we load a db in recovery mode. We could use a slightly better heuristic (looking for ascii chars before correcting the length), but it is not worth it. Another way would have been to trap the SEGV and access data[len] and see if that worked, but that seemed exceedingly ugly.
2003-02-05"Utilize" has exactly the same meaning as "use," but it is moreperry
difficult to read and understand. Most manuals of English style therefore say that you should use "use".
2003-01-20bump version.aymeric
":cs add" works when using a database file in the current directory, whichever way we specify its name.
2003-01-20. Don't call terminate() after read_prompt() failed.aymeric
Fixes memory re-use after free(). . Fake a directory name of "." if given a path without '/'. This makes ":cs add cscope.out" work, and behave like ":cs add ."
2003-01-06writable, not writeable.wiz
2002-12-06Avoid a strict alias warning.thorpej
2002-09-18makefile delint. use NETBSDSRCDIR as appropriatelukem
2002-08-13add ${MACROS} to roff call to make output paper readablepooka
2002-06-18Don't install nbcat instead of catalog files. Problem noticed by Kimio Ishii.enami
2002-05-09Use an "int" instead of an "u_char" for a variable that is as a loopsimonb
control variable that is checked against against "<= 255".
2002-05-02Document a couple of missing "set" options, mostly borrowing languagefredb
from vi.ref, and explain how to set "escapetime" to work-around the problem described in PR 8277. This should close PR 8277.
2002-04-15Bump to nb7 after fixing FreeBSD PR #12801 (again) in a way which hopefullypooka
doesn't have adverse side-effects.
2002-04-15Fix FreeBSD PR #12801 in such a way that it doesn't create unfortunatepooka
side-effects, like the ones described in bin/15891 and bin/16210. patch from Sven Verdoolaege (nvi maintainer)
2002-04-09Use __RCSID() and __COPYRIGHT().thorpej
2002-03-25Back out rev 1.6, per discussion with Aymeric Vincent and Antti Kantee.simonb
Rev 1.6 fixes an obscure core-dump problem, but changes the long time behaviour of cursor positioning when switching files. "Fixes" PR bin/15891.
2002-02-11bump version to nb6 after fixing bin/15474pooka
2002-02-09Exit the file_init "recursion" only if we are actually already trying forpooka
a second time. Checking for the plain temp filename was not enough, as it may be set even though we are calling the function for the first time. fixes bin/15474 by Chuck Cranor
2002-02-08Generate <>& symbolically. I'm avoiding .../dist/... directories for now.ross
2002-01-13Fixed FreeBSD PR #12801, the way nvi 1.81.5 did it.aymeric
(vi dumped core when editing a new file after having edited another one) affects common/exf.c
2002-01-13Fix FreeBSD PR #12801, the way nvi 1.81.5 does it.aymeric
(vi dumped core when editing a new file after having edited another one)
2002-01-07cast size_t to u_long for printf(3)-like callsaymeric
This only affects #ifdef DEBUG code.
2001-12-31Avoid an "operation on foo may be undefined" warning (gcc 3.1).thorpej
2001-12-13FreeBSD PR#23912 fixed by applying a patch from nvi 1.81.xaymeric
"underflow of cnt in vs_paint() by O_NUMBER_LENGTH when both leftright and number options in use"
2001-12-13Finally apply a fix from nvi 1.81.x to replace a fix committed byaymeric
Simon Burge which came from the Debian project. This is still not TRT, but it's correct, and it gets us closer to future versions of nvi. I'll do ART (A Right Thing) when I have time... That's why I'm committing this now. :-/ This fixes FreeBSD PR#23912
2001-12-12MKfoo=no -> NOfootv
2001-12-02Our libcurses now has the newterm function, make vi use it.blymn
2001-12-01Whitespace cleanup.wiz
2001-10-21Back out previous; Aymeric Vincent is looking into a better fix.simonb
2001-10-21Fix problem with long pauses displaying blank lines if O_LEFTRIGHT andsimonb
O_NUMBER both are active. Patch from Debian bug report #79768.
2001-10-20backout my miscommit.yamt
pointed by Aymeric Vincent.
2001-10-20bump version after fixing a bug introduced in 1.79nb2aymeric