summaryrefslogtreecommitdiff
path: root/usr.bin/vi
AgeCommit message (Collapse)Author
2016-11-05Remove syscall.ph from vi.recoverAndrew Fresh
since perl-5.10 chdir supports fchdir ok guenther@
2016-09-02Fix the begin of word issue in vi(1).Martijn van Duren
Similar fix went in sed and ed. Feedback and OK schwarze@
2016-08-27Pull in <sys/time.h> for struct timespec and timevalPhilip Guenther
ok deraadt@
2016-08-14Kill '#if defined(DEBUG) && 0' blocks that used %qPhilip Guenther
ok bentley@ on principle
2016-08-08/tmp and /var/tmp are the same, consistently use the former in bothIgor Sobrado
build/recover and documentation. ok millert@, tb@, martijn@ and schwarze@
2016-08-01Remove vi's "directory" option and TMPDIR support.Anthony J. Bentley
ok jung@
2016-07-07biff, mesg, vi: only consider ACCESSPERMS for setting tty mode.Sebastien Marie
it explicitly removes any S_ISUID|S_ISGID|S_ISTXT bits, instead of letting pledge(2) silenciously remove them. ok beck@ deraadt@
2016-06-29If /tmp/vi.recover doesn't exist, don't create it. Warn onceTheo Buehler
that it doesn't exist, afterwards fail silently. ok millert
2016-05-28Test if stdin is a terminal before resetting the tty state.Martijn van Duren
Diff supplied by Kai Antweiler. OK semarie@ and deraadt@
2016-05-27Revert CHAR_T removal. Some signedness flaws were introduced.Martijn van Duren
Found the hard way by jca@
2016-05-07Free memory if realloc fails. The application is most likely to terminate afterMartijn van Duren
a failure, but if it does not we better clean up after ourselfs. OK deraadt@ and stefan@
2016-05-05Remove __sigblockset. This is a leftover after the removal of the signalMartijn van Duren
blocking code in common/gs.h rev 1.14. Remove a redundant return while here. OK millert@
2016-05-02Remove pointless comment. getcwd(3) is safe.Martijn van Duren
OK millert@
2016-05-02Remove CHAR_T in favor of native types.Martijn van Duren
schwarze@ agrees with the direction. Few tweaks and OK tb@
2016-04-20Remove pointless reenter variable.Martijn van Duren
OK millert@
2016-04-19Remove not implemented decliration of sscr_pty.Martijn van Duren
2016-04-19Remove some useless code.Martijn van Duren
Minor tweak and OK schwarze@ OK tb@
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@