summaryrefslogtreecommitdiff
path: root/usr.bin/vi/common
AgeCommit message (Collapse)Author
2003-12-31Both POSIX and the man page says that "vi -r foo" is run where foo does notTodd C. Miller
exist and has no recovery file that vi shall present an error and edit foo as a new file. This change makes the behavior match the documentation; previously it just spat out an error and quit. Problem found by jmc@
2003-08-01when the -R option (read-only) is specified, there is no need to printPeter Valchev
a warning that the file is read-only, it's obviously what's expected... ok fgsch henning
2003-07-02bump randomness of mktemp to from 6 to 10 X's, as recommended by mktemp(3)Anil Madhavapeddy
2003-04-25oopsTheo de Raadt
2003-04-25fix commentTheo de Raadt
2003-04-17eliminate strcpy/sprintf. reviewed by deraadt and millert.Jun-ichiro itojun Hagino
2003-04-15snprintf of courseTheo de Raadt
2003-04-07replace strcpy calls that got inlined by gcc; ↵Theo de Raadt
Hans-Joerg.Hoexer@yerbouti.franken.de
2002-06-12a real pid_t cleanup.Mike Pechkin
espie@ ok for make/, deraadt@ one extra eye, millert@ ok
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.Todd C. Miller
2002-02-19oops, left out ;Eric Jackson
2002-02-18format string fixesEric Jackson
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-01-31Bugfix picked up from NetBSD, and checked by pval:Hugh Graham
: date: 2001/10/20 10:04:50; author: aymeric : Fix a cut_line() caller not using the right value for (former) ENTIRE_LINE, : by defining the (newer) CUT_LINE_TO_EOL define in common/cut.h and using it : where due. : Bug reported on current-users by Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp> : diagnosed by Bang Jun-Young <bjy@mogua.org>, : quick-fixed by Robert Elz <kre@munnari.OZ.AU>.
2001-09-19Define ENTIRE_LINE to be -1 instead of 0 because we may want to copy 0 ↵Peter Valchev
characters, and use ENTIRE_LINE instead of hardcoding 0 in a few places. Fixes a bug when dw on an empty line would delete only the empty line, but copy the next line too. From NetBSD, ok millert
2001-09-17make vi exit if it can't create a temp file. From NetBSD, ok millertPeter Valchev
2001-08-18Fix a pasto I made when adding snprintf() return val checks ages ago.Todd C. Miller
2001-06-18When creating temp files, use fchmod() to set the perms to be what weTodd C. Miller
expect since the mode mkstemp() uses can be modified by the umask. This fixes a problem where vi would spin trying to create temp files, eating up inodes; reported by xyntrix@bitz.org This fix has the side effect of letting you create files with silly modes (like 0000), but that is probably OK.
2001-05-28Print SYSERR instead of ERR when recdir does not exist.Peter Valchev
Makes the message more useful for the user; from NetBSD, millert@ ok
2001-01-29$OpenBSD$Niklas Hallqvist
2000-10-22Fix noprint/print/octal options; from NetBSD.Christian Weisgerber
reviewed by millert@
1999-11-26o Update README files etc. from nvi-1.79 so they have the correct infoTodd C. Miller
o make port.h empty since we there is nothing we lack o include <sys/param.h>, not <sys/types.h> in files that use MIN/MAX macros o add perl api support since we have libperl (off by default)
1999-05-24set the close-on-exec flag for newly opened filesDavid Leonard
Reason: vi uses flock to help you notice when you are already editing a file. But, when using :shell or :! the fdesc for the locked file is inherited by the subprocess. This means that if you (say) do a :!xterm& and then quit vi, the fdesc is kept open by the xterm and the lock is never released. future vi's on that file will then complain. I sent this off to bostic.com a long time ago but have as yet heard nothing.
1999-03-06back out changes that should not have escaped my local treeTodd C. Miller
1999-03-06add missing reference to infocmpTodd C. Miller
1998-06-23Fix snprintf return value usage.Todd C. Miller
1997-07-27Update to 1.79 and install as vi/ex/view.Jason Downs
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-10-16nvi 1.78:michaels
+ Fix bugs when both the leftright scrolling and number edit options were on. + Fix bug where splitting in the middle of the screen could repaint incorrectly. + Fix first-nul in input bug, where random garbage was inserted. + Correct search and mark-as-motion-command bug, it's a line mode action if the search starts at or before the first non<blank>. + Fix bug autoindent bug, where ^D could shift too far in the line. + Fix core dump where ! command called from the .exrc file. + Add the -S command-line option, which initializes vi to have the secure edit option preset.
1996-09-17nvi 1.76:michaels
+ Fix bug where ^V didn't keep input mapping from happening. + Fix a core dump bug in the R command. + Give up on licensing: no more shareware, adware, whatever. + Fix cursor positioning bug for C, S and c$ in an empty file.
1996-08-23nvi 1.75michaels
1996-08-20nvi 1.74michaels
1996-08-16nvi 1.73michaels
1996-07-24bring vi/ex up to 1.71Michael Shalayeff
1996-06-18vi fixes from bosticTheo de Raadt
1996-05-22new viTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt