summaryrefslogtreecommitdiff
path: root/usr.bin/vi
AgeCommit message (Collapse)Author
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-21Updated license from nvi-1.81.5 since we will be pulling in patches from it.Todd C. Miller
2003-07-21Merge back some changes from skimo's tree, fixes endless recursionsDaniel Hartmeier
in vs_paint() for some option combinations. ok millert@
2003-07-18add missing includesDavid Krause
ok tedu@
2003-07-09Fix double free; eric jacksonTodd C. Miller
2003-07-02bump randomness of mktemp to from 6 to 10 X's, as recommended by mktemp(3)Anil Madhavapeddy
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
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-15No, vi does not ignore SIGQUITTodd C. Miller
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
2003-03-10spelling fixesDavid Krause
ok millert@
2003-01-12typos; jmc@prioris.mini.pw.edu.plTheo de Raadt
2002-12-15more writable spelling; torhHenning Brauer
2002-11-23typo: Edieroption->EditieroptionReinhard J. Sammer
ok mickey@
2002-11-19update ru as it was 7bit stripped and add ua and pl; from freebsd, pt out by ↵Michael Shalayeff
glebius@rinet.ru in pr2552
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-11-19kill more registersMike Pechkin
millert@ ok
2001-11-06change a stat() to lstat()Todd C. Miller
2001-11-05Add more sanity checks of path data in the vi recovery file; potential ↵Todd C. Miller
problems pointed out by lumpy@the.whole.net
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-19Fix a bug where ^@ wouldn't behave as expected when reading an exPeter Valchev
command from vi. From NetBSD, ok millert
2001-09-17make vi exit if it can't create a temp file. From NetBSD, ok millertPeter Valchev
2001-09-15Obvious omissions.Miod Vallat
2001-09-11locale ru_SU is obsolete, replace with ru_RUHeikki Korpela
mickey@ ok
2001-08-18Range check snprintf() return valueTodd C. Miller
2001-08-18Fix a pasto I made when adding snprintf() return val checks ages ago.Todd C. Miller
2001-07-20make this work, after espie changed other mk behavioursTheo de Raadt
2001-07-09correct type on last arg to execl(); nordin@cse.ogi.eduTheo de Raadt
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-28Behave correctly when displaying an empty screen line when thePeter Valchev
corresponding file line is not empty itself. Avoids coredumps in the ':set list' mode (at least). NetBSD PR 4113; millert@ 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
2001-01-17Don't dump core when a ``bad address'' error occurs and there is neitherPaul Janzen
a file nor a command underlying it. This fixes NetBSD PR 11543; the fix is from Aymeric Vincent <aymeric@netbsd.org>.
2001-01-11grep() returns a list of aliases to entries in the original listTodd C. Miller
so modifying them directly results in a munged line in the resulting mail message that gets sent out. Similar to a patch from cazz@wezl.org; closes PR 1617
2000-11-17OpenBSD already has queue.h and this one gets in the way since OpenBSDTodd C. Miller
includes expect macros in sys/queue.h that the vi queue.h didn't have.
2000-11-17Userland programs should not include sys/select.hTodd C. Miller
2000-10-22Fix noprint/print/octal options; from NetBSD.Christian Weisgerber
reviewed by millert@
2000-10-12When checking mmap return, check for MAP_FAILED, not -1.Artur Grabowski
2000-09-15check return value for setenv(3) for failure, and deal appropriatelyTheo de Raadt
2000-08-02$HOME paranoia: never use getenv("HOME") w/o checking for NULL and non-zeroTodd C. Miller
2000-04-21Remove the races so that this is safe to run anytime. We openTodd C. Miller
/var/tmp/vi.recover to get an fd and user O_NOFOLLOW to following a symlink. Once we have a file handle we can use it to safely chdir to the right place and form then on do operations relative to ".". Also restrict to root.