summaryrefslogtreecommitdiff
path: root/usr.bin/vi
AgeCommit message (Collapse)Author
2010-05-30more undead filesdholland
2008-10-29bye old vi!christos
2008-10-25Use ${TOOL_SED} instead if plain sed in Makefiles.apb
2008-10-19Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.apb
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-09-02disable completely.christos
2008-08-31For now descend into old vi for virecover and doc. Unfortunately thechristos
new vi vi.ref is now texinfo and our makeinfo is too old to deal with it.
2008-08-29Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a ↵gmcgarry
few flags for PCC.
2008-07-21Remove the \n and tabs from the __COPYRIGHT() strings.lukem
Tweak to use a consistent format.
2008-07-10add check wether /var/run/vi.* is regular file or not.tnozaki
nvi-1.81.6 may create not only recovery file, but tempoary directory(for db) using this name.
2008-04-30Convert TNF licenses to new 2 clause variantmartin
2007-01-22exit(3) needs stdlib.h.joerg
2006-11-24fix spelling of accidentally; from Zapherchristos
2006-10-13Comma in enumeration. No dot at end of SEE ALSO.wiz
2006-10-13Various fixes.wiz
2006-10-10Remove parenthesis from around a sentence.reed
Refer to vi manpage for option -r. Mention rc.d start up script for this. Add rc.conf to SEE ALSO. Remove sentence about it originally done at boot time. Fix date - it was added in 1996. And mention that the script was renamed in 2001.
2006-10-10Also point to new virecover manual page.reed
2006-10-08Build virecover.0dogcow
2006-10-08PR/22228: Jeremy C. Reed: a man page for virecover(8)elad
Man page added, thanks!
2006-09-27Coverity CID 793 uncovered a bunch of issues:christos
1. needfree = 0, should have been *needfree = 0 2. this function will not work with sp == NULL, since KEY_NAME dereferences it. 3. the if (0) { label: } code is disgusting. Remove all the nasty and impossible code and fix 1.
2006-09-27Coverity CID 4166: If GET_SPACE_RET can return a NULL pointer if len == 0.christos
Check for it.
2006-09-27Coverity CID 4171: bp can be null if len == 0. So check for it anyway andchristos
don't call memcpy unconditionally.
2006-05-27Fix previous Coverity "fix" so that it doesn't break vi completely.simonb
2006-05-27Clean up after the last fix.agc
2006-05-27Coverity CID 3684: memory leakjnemeth
2006-05-27Coverity CID 3135: memory leakjnemeth
2006-05-14XXX: GCC uninitializedchristos
2006-05-11XXX build with -Wno-pointer-sign and -fno-strict-aliasing when using GCC4.mrg
2006-05-10quell GCC 4.1 uninitialised variable warnings.mrg
XXX: we should audit the tree for which old ones are no longer needed after getting the older compilers out of the tree..
2006-03-19the preceeding loop does not terminate except in a condition wherertr
kp != NULL therefore testing if kp is == NULL after it is pointless coverity 2446 / run 6
2006-03-19avoid double fclose()rtr
coverity 2577 / run 6
2006-03-19remove ambiguity in evaluation of conditional expressions and avoidrtr
double fclose(). coverity 2713 / run 6
2005-10-16the last revision introduced a bug in the handling of escape characters whileaymeric
trying to correct a corner case. I will work on a final solution later. Thanks to David Brownlee for noticing and notifying me.
2005-10-08bump for latest changes:aymeric
. reintroduce ^V as a valid quoting character . don't swallow quoting characters which are not followed by anything
2005-10-08accept ^V again as a quoting character. At least one person uses it. (hi abs!)aymeric
While there, fix a bug that would swallow a quoting character if it were the last one.
2005-10-08remove the hack that changed backslaches to ^V's when the command is "set" (!).aymeric
Now backslashes are understood by argv_exp3().
2005-09-06bump to nb15:aymeric
. we now handle ^C correctly in all cases . blanks and alnum chars are ignored in the shellmeta option, as the code brokenly said it should . \ can be used to escape any (special) character in file names
2005-09-06In argv_exp3() where we cut a line into args, check for '\' as the escapeaymeric
character instead of using the IS_ESCAPE() macro which tests for ^V because the former is mandated by the standards, and the latter is insane. This is a very small part in addressing PR bin/26046 by lukem@. Before, in order to escape a special character, you had to use a literal ^V, which is type ^V twice before the character; whereas now, you use \. Because the fix will remain partial for a while, you have to remove \ from your shellmeta option otherwise the \ is swallowed by the invoked shell that handles arguments expansion. Please complain if you want ^V^V to also work, but please don't call me a heretic.
2005-09-06From code inspection, nvi had the undocumented and non-working functionalityaymeric
of ignoring alphanumerical and blank characters from the shellmeta option. The former code was using a character pointed to by a pointer as a boolean to check whether to enable this functionality, but in the meantime the pointer was used for something else. Introduce a variable for this boolean so that the functionality actually works.
2005-09-06Finally handle ^C the correct way. This indeed requires to separate the caseaymeric
of text-recording input (usually text in insert mode) from the other cases (e.g. ex command input). If recording, morph to escape key so that the input is correctly finished for a potential replay; if not, simply bail out and notify that something wrong occurs. Callers will cope. The previous fix could make ^C sometimes produce a file completion or a command edition, depending on the settings of the user. I think this is the correct fix for since closed PR bin/11544 by pooka@. ;-)
2005-09-06when reading an ex command within visual mode with v_tcmd(), check thataymeric
the termination value of v_tcmd() is alright. Abort the command otherwise. Until the next commit in vi/v_txt.c, this is a noop.
2005-06-07Initialize a local variable to appease -Wuninitialized.he
Marked with XXXGCC for dreamcast (found while compiling for it). Reviewed by lukem.
2005-06-07Initialize a local variable to appease -Wuninitialized.he
Marked with XXXGCC for sun2 (found while compiling for it). Reviewed by lukem.
2005-06-07Initialize a local variable to appease -Wuninitialized.he
Marked with XXXGCC for dreamcast (found while compiling for it). Reviewed by lukem.
2005-06-02appease gcc -Wuninitializedlukem
2005-06-02appease gcc -Wuninitialized.lukem
Each is marked with XXXGCC, because in some cases it looks like gcc isn't correctly detecting that for ( ; xxx ; yyy) foo = 0; always sets foo ...
2005-06-02Don't attempt to dereference an uninitialized 'ep' pointer if we can'tlukem
make a temporary file to mail to the user. Detected with gcc -Wuninitialized.
2005-06-02Don't attempt to dereference an uninitialized pointer when an errorlukem
occurs in gtags parsing. For that matter, remove the unused 'tftp' and 'echk' variable, as they're set but not used afterwards. Detected with gcc -Wuninitialized.
2005-03-06If we cannot retrieve lines from a recovery file, don't call ourselveschristos
recursively until we run out of stack.
2005-03-06A corrupt recovery file can have vs_scmap NULL now, since paint may returnchristos
early. Compensate.
2005-02-12Fix the RCSID's to be $NetBSD$ instead of $NetBSDaymeric