summaryrefslogtreecommitdiff
path: root/usr.bin/vi
AgeCommit message (Collapse)Author
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.
2000-04-20If recover dir is not owned by root, chown it. If the mode is notTodd C. Miller
01777, fix that too. This is safe because the script is run before user processes start.
2000-03-09Pull in fnctl modeul so we are sure to get O_* for sysopen().Todd C. Miller
2000-01-22Some minor doc updates that should have gotten commited ages ago.Todd C. Miller
2000-01-20Use sysopen() when opening recover files. This is purely paranoiaTodd C. Miller
since we check that the filename matches '^recover' and hence the first character cannot play games with perl's magic open().
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-10-11Rewrite in perl for safety and paranoia. It might have been possibleTodd C. Miller
to play tricks with filesnames that include spaces.
1999-07-10Fix a SEGV after you HUP vi; dean@netbsd.orgTodd C. Miller
1999-06-05- remove trailing white spaceAaron Campbell
- remove arguments from .Os macros - remove arguments from .Nm macros, where appropriate - some more Dq/Sq/Ql insanity - still lots to do in the usr.bin tree... :/
1999-05-29MLINKS, not MLINKAaron Campbell
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-10fix comma splices involving 'however'Paul Janzen
1999-03-06back out changes that should not have escaped my local treeTodd C. Miller
1999-03-06add missing reference to infocmpTodd C. Miller
1999-03-03better grammar for err msgAaron Campbell
1999-02-08Don't call curses routines beep() or flash() if the screen has not beenTodd C. Miller
setup yet (as they will try to us SP which is NULL at this point).
1998-07-24Man pages Xrefs.Marc Espie
1998-07-24-D_USE_OLD_CURSE_ for -locurses and no more -ltermlib/termcapTodd C. Miller
1998-06-23Fix snprintf return value usage.Todd C. Miller
1998-04-25fix relative tags in vi; Frank Mayhar <frank@exit.com>Todd C. Miller