summaryrefslogtreecommitdiff
path: root/usr.bin/vi
AgeCommit message (Collapse)Author
2013-12-01Change the file reference queue from CIRCLEQ to TAILQ.Kenneth R Westerback
vi is now CIRCLEQ free! ok zhuk@
2013-12-01Change the tags queue from CIRCLEQ to TAILQ.Kenneth R Westerback
ok zhuk@
2013-12-01Change the tag queue from CIRCLEQ to TAILQ.Kenneth R Westerback
Fixes & ok zhuk@
2013-12-01Convert the ranges CIRCLEQ to TAILQ.Kenneth R Westerback
ok zhuk@
2013-11-28Convert the display screens and hidden screens CIRCLEQ's to TAILQ's.Kenneth R Westerback
ok pelikan@ zhuk@
2013-11-27Zap some pointer casts became extra (and thus dangerous) after recentVadim Zhukov
CIRCLEQ removal. okay krw@
2013-11-26fix a possible double-free/NULL deref in msg_printpelikan
While there, initialize some variables on unusual paths. Found by clang static analyzer, ok krw.
2013-11-26Tweak a tortuous manual loop into a TAILQ_FOREACH().Kenneth R Westerback
ok pelikan@
2013-11-26fix condition after CIRCLEQ -> TAILQ conversion; ok zhuk@Otto Moerbeek
2013-11-26fix incorrectly converted CIRCLEQ_END comparison to prevent NULL deref'spelikan
found by clang static analyzer, ok jca, otto
2013-11-25Replace _texth CIRCLEQ with TAILQ. One down, five to go.Kenneth R Westerback
Read, tested, fixed and ok'd zhuk@ pelikan@ millert@
2013-08-22Correct format string mismatches turned up by -Wformat=2Philip Guenther
suggestions and ok millert@
2013-06-22Tweak optimization flags on landisk until I have time to investigate further.Miod Vallat
2013-05-14When ^W (WERASE) is hit in insert mode it's possible that the lineTodd C. Miller
buffer is accessed out of bounds. If 'max' == 0 and 'tp->cno' == 1 the 'tp->cno' value is first reduced by one and then 'tp->lb' is accessed at 'tp->cno' - 1. Also remove dead (and incorrect) code in the TXT_ALTWERASE case. From Arto Jonsson; OK martynas@
2013-05-03Use open(2) / fstat(2) instead of stat(2) / open(2) for checkingMatthias Kilian
proper permissions of "local" .exrc or .nexrc files. With some hints and fixes from deraadt@ and tobias@. ok millert@ tobias@ (more tweaks suggested by millert@ and some cleanup will be done in separate diffs)
2013-04-29use FD_CLOEXEC instead of 1; from David HillOkan Demirmen
ok otto
2012-12-20use openpty() rather than hand-rolled pty opening code; ok millert@Christian Weisgerber
2012-12-03Fix hang when exiting shell in script mode. OK naddy@Todd C. Miller
2012-01-17flesh out the VI COMMANDS section somewhat;Jason McIntyre
diff from Alexis Fouilhe; help/ok sobrado
2011-12-28These utilities were already part of 1BSD, and some authors are known.Ingo Schwarze
All facts from the CSRG archive CD 1, also available from minnie.tuhs.org. Feedback and OK sobrado@, ok jmc@. Kirk McKusick writes: "Bill usually used "Bill Joy" when listing author information. Only occationally did he choose to use William Joy. So, I would recommend using Bill Joy." So i'm using that here even though some of the original files related to this commit do contain the form "William Joy".
2011-07-29document vi/ex regular expressions, and where they differ from thoseJason McIntyre
documented in re_format(7); diff from alexis fouilhe, and verified/tweaked by sobrado; ok millert otto
2011-07-10Rename O_DIRECTORY to O_TMP_DIRECTORY to avoid a namespace collisionTodd C. Miller
with sys/fcntl.h. OK deraadt@
2011-05-16better document some of the terminology used in the VI COMMANDS section;Jason McIntyre
from Alexis Fouilhe
2011-05-02no need to escape `|'; as discussed with schwartzeJason McIntyre
2011-04-12better document vi's startup (in terms of environment variablesJason McIntyre
and config files); diff from Alexis Fouilhe verified by millert
2011-04-10Fix display glitch leading to crash. If we're reformatting, checkMartynas Venckus
the screens necessary to display the line and modify head or tail of the smap accordingly; since it might have changed due to e.g. smaller tabstop value. Reported by Patrick Keshishian who submitted a wrong diff and didn't care to even test this one. OK millert@, krw@.
2011-03-31add a BUFFERS section, to explain how they work;Jason McIntyre
from Alexis Fouilhe - many thanks to him for his work on this
2011-03-17since we stopped installing the usd docs, it no longer makesJason McIntyre
sense for DESCRIPTION to point to SEE ALSO; from Alexis Fouilhe
2011-01-05tyop, pr 6538.Jasper Lievisse Adriaanse
2010-10-18remove references to now removed usd/psd/smm docs;Jason McIntyre
2010-10-17Stop installing me(1) and ms(1) source code.Ingo Schwarze
We will soon get rid of groff in base, so there is no longer any way to use these files with base. No opposition on tech@.
2010-09-29various EXIT STATUS fixes; from Daniel DickmanJason McIntyre
2010-09-24add a little padding to make SYNOPSIS line up nicely;Jason McIntyre
2010-07-25^U scrolls backwards, not forwards; from marrob at lavabit comJason McIntyre
2010-07-18remove some nasty hacks;Jason McIntyre
2010-07-15More delimiters that need quoting inside macros, hunted down by jmc@,Ingo Schwarze
who asked me to commit because he is just running out of the door.
2010-05-29subsitution -> substitution;Jason McIntyre
from Yoshihiro Ota, freebsd pr bin/130874
2009-11-22Fix for flash defaulting to off, pointed out by jmc.Nicholas Marriott
2009-11-22Change the flash option to be off by default. Now that xterm has the flashNicholas Marriott
capability in terminfo, vi was using it instead of beeping, but it is too slow for some machines. ok deraadt
2009-11-15do not leak a lot of memory if a small memory allocation fails, found byTheo de Raadt
parfait ok kettenis guenther
2009-11-14fix leaks in error paths found by parfaitJonathan Gray
ok deraadt@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-10-20ex(1) and vi(1) are different editors. diff based on the originalIgor Sobrado
printed edition of the User's Reference Manual from USENIX and O'Reilly. 4.4BSD had exactly this, that is much more accurate than our current description (while here, Jason observed that both FreeBSD and NetBSD do the same). tweaked by jmc@ ok jmc@
2009-06-10Use poll() instead of select(). The sscr_check_input() bit isTodd C. Miller
adapted from nvi 1.81. Tested by several people during the hackathon.
2009-06-02If the read from the tty fails with EAGAIN, pop back up to the select.Todd C. Miller
Seems to happen occasionally even though select reported the fd is ready. OK ray@
2009-04-27It's called `msgcat', not `mesgcat'.Michael Knudsen
speedy ok millert
2009-04-19fix tagnext and tagprev; from patrick keshishianJason McIntyre
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2009-02-01Move variable declarations around to compile with gcc 2Miod Vallat
2009-01-28remove undocumented support for "-e" in ex(1).Igor Sobrado
millert@ says that neither 4.4BSD nor Solaris ex(1) accept this flag, so it is safe to reject it too. ok jsing@