summaryrefslogtreecommitdiff
path: root/usr.bin/vi
AgeCommit message (Collapse)Author
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2016-03-19By issuing :e +something in vi(1) this uncovers a backwards memcpy with themestre
code because the 2 buffers overlap and in order to solve it then replace memcpy(3) call by memmove(3) Issue noticed by Michael Price <michael at ectospheno dot com> who also tested this diff OK deraadt@
2016-03-17Add error checking for COLUMNS/LINES environment variables.Anthony J. Bentley
It would be better to replace all the complicated existing code with a simple idiom, and this is being worked on. But for the moment, preventing vi from crashing is worthwhile. ok jung@
2016-03-13remove an extra space before ^\ help message.martijn
Fixes allignment in viusage By Raf Czlonka
2016-02-11Update comment: the #ifdef VDSUSP was removed in r1.22.Tim van der Molen
2016-02-09avoid special characters; from michael reedJason McIntyre
2016-02-03Remove needless alias macros for malloc and calloc. No binary change. Immcc
got this upstreamed a few weeks ago. ok tb (less a few style tweaks), martijn (who suggested style tweaks)
2016-01-30/var/tmp is dead, long live /tmpmartijn
OK zhuk@ and tb@
2016-01-30replace tail with basenamemartijn
OK tb@
2016-01-30replace progname variable in gs structure with getprognamemartijn
OK zhuk@ and tb@
2016-01-27remove v_estr in favor of warn and warnxmartijn
OK schwarze@, zhuk@ fine with me tb@
2016-01-27Replace fprintf+exit with errx. No functional changemartijn
OK zhuk@ and schwarze@ fine with me tb@
2016-01-20Remove ARG_CHAR_T, a relic from when the code was written K&R style.Anthony J. Bentley
ok millert@ schwarze@
2016-01-09decls before code; from Martijn van DurenTheo de Raadt
2016-01-06Remove mention of message catalog dir.Todd C. Miller
2016-01-06We don't use configure so this file is full of lies and we areTodd C. Miller
better off without it.
2016-01-06Remove msgcat from the documentation.Todd C. Miller
2016-01-06Remove prototype for now-deleted f_msgcat().Todd C. Miller
2016-01-06Remove the actual message catalogs. From Martijn van DurenTodd C. Miller
2016-01-06Remove the msg_cat() function and adjust its former callers.Todd C. Miller
From Martijn van Duren
2016-01-06Remove the numeric identifiers at the beginning of the messagesTodd C. Miller
which used to be used as the message number to lookup in the catalog. From Martijn van Duren
2016-01-06Remove the message catalog DB. This removes the msg_open() andTodd C. Miller
msg_close() functions along with the msgcat command. From Martijn van Duren
2015-12-28Use err() instead of custom perr() function. Also applied by nvi2Todd C. Miller
upstream. From Martijn van Duren.
2015-12-07Remove needless type casts and corresponding type parameters frommmcc
allocation macros. No binary change. ok tb@
2015-12-03After inserting a backslash, don't treat ^H ^? or ^U as special cases.Anthony J. Bentley
These days, ^V to escape is a universal feature and needing two keystrokes to delete backslashes is really annoying. ok tb@ claudio@ schwarze@
2015-11-24Update the other documentation to match the new filec default.Anthony J. Bentley
requested by and ok jmc@ (a sign that these files really need to be merged into the manpage so they don't get any more stale...)
2015-11-24Turn on filename tab completion in vi by default.Anthony J. Bentley
From FreeBSD. ok claudio@ tb@
2015-11-23Remove cscope references in documentation.Anthony J. Bentley
requested by and ok jmc@
2015-11-20vi -S doesn't need proc or exec.Anthony J. Bentley
ok tb@
2015-11-19"tty proc exec", not "proc exec tty"Anthony J. Bentley
2015-11-19Remove cscope support in vi.Anthony J. Bentley
It makes no sense to keep support for a non-base tool in base, especially for a feature that few if any people use.
2015-11-15Vi needs flock, for those who haven't set nolock in .exrc for years...Anthony J. Bentley
Pointed out by Theo Buehler.
2015-11-15Basic pledge for vi.Anthony J. Bentley
ok deraadt@
2015-09-14Avoid .Ns right after .Pf, it's pointless.Ingo Schwarze
In some cases, do additional cleanup in the immediate vicinity.
2015-07-07Fix a regression caused by timespec changes when vi is run withoutTodd C. Miller
a file to edit. Based on a diff from Patrick Keshishian.
2015-04-24struct timespec/clock_gettime(3) conversion for vi(1).Bryan Steele
ok guenther@
2015-04-21init both fds passed to pipe as -1 instead of initing one twiceJonathan Gray
ok deraadt@ guenther@ miod@ millert@
2015-04-19Don't lock the file for "vi -R" or "view". OK deraadt@Todd C. Miller
2015-04-10This changes vi to use resizeterm(3) instead of reinitializing curses onBryan Steele
window resizes, which was leaking massive amounts of memory. Try observing vi in top(1) and while resizing the window a few times before and aftering applying this diff.. Also some more comment cleanup and another memory leak.. From github.com/lichray/nvi2 879d2ad6dd4a4343eb0a588ebfe637e1c9845bc4 a8c38480adb030a05bbb2aafec6067dd65d8c2eb ok millert@
2015-03-29Remove SA_INTERRUPT, HISTORIC_PRACTICE, and HISTORICAL_PRACTICE usingBrian Callahan
unifdef. It seems clear that no one was using these (SA_INTERRUPT didn't even build the other way). Tweak comments as appropriate. ok brynet@
2015-03-28vi was using two separate isblank functions: one defined in <ctype.h> andBrian Callahan
the other #defined in common/key.h. There is no reason to have both. For consistency use the isblank function from <ctype.h>, remove the #define in common/key.h, and add #include <ctype.h> to the files that were missing the header. ok brynet@
2015-03-27Some vi cleanup, unifdef's some signal blocking code that has never beenBryan Steele
enabled in our tree, also removes some stragglers from a global struct referencing nonexistent Tcl/TK and "IP support". And finally.. deletes an empty file missed by earlier cleanup by bentley@. Inspired by and ok bcallah@
2015-03-17Don't use the wrong escape for < and >. Tweak wording to match the page.Anthony J. Bentley
From Theo Buehler.
2015-03-13remove the first comma from constructs like ", and," and ", or,": you can useJason McIntyre
"and" and "or" to join sentence clauses, and you can use commas, but both hinders reading;
2015-03-10Display "Search wrapped" even when searching from the end of the file.Anthony J. Bentley
From Zhihao Yuan. ok millert@ miod@
2015-02-28Reduce usage of predefined strings in manpages.Anthony J. Bentley
Predefined strings are not very portable across troff implementations, and they make the source much harder to read. Usually the intended character can be written directly. No output changes, except for two instances where the incorrect escape was used in the first place. tweaks + ok schwarze@
2015-02-06Do not rely on unspecified behavior for the size_t overflow check.Todd C. Miller
OK miod@
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-11-20Remove the vi perl api.Anthony J. Bentley
There have been various build errors for coming on two years now. It doesn't work and nobody has expressed any interest in saving it. From natano; ok millert@
2014-11-19Remove ifdef checks for LIBRARY.Anthony J. Bentley
It is undocumented and triggers the same conditional inclusions as PURIFY does. From Martin Natano.