Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-05-24 | Correct one statement about how the 'm' command works, talk less | Ingo Schwarze | |
about ancient terminals, employ the more usual term "caret" rather than "up-arrow", and fix a few minor nits. Patch from Andras Farkas <deepbluemistake at gmail dot com>. Just committing right away because we don't currently install this file, but maybe we might in the future. | |||
2020-04-30 | Add an expandtab option, similar to what vim supports. | Todd C. Miller | |
If set, expands tabs to spaces in insert mode as well as when shifting and indenting/outdenting. If quoted with ^V, a literal tab is inserted. Adapted from NetBSD, but this implementation more closely matches vim's behavior. OK dlg@ | |||
2019-10-04 | better link "set" and "SET OPTIONS"; | Jason McIntyre | |
original diff from sven falempin, tweaked a bit by myself; ok sthen | |||
2019-07-22 | In secure mode (-S), skip sending mail when executing the :pre[serve] | Ingo Schwarze | |
command or when dying from SIGTERM. This way, creating the recovery file works again without re-adding "proc exec" to the pledge(2). As reported by Jesper Wallin <jesper at ifconfig dot se>, this got broken by common/main.c rev. 1.29 (Nov 19, 2015). The general direction of the fix was suggested by brynet@. OK brynet@ and no opposition when shown on tech@ | |||
2019-05-21 | Also apply stricter pledge when secure mode is set via rc file or command. | Martijn van Duren | |
Pointed out by jesper <at> ifconfig <dot> se OK brynet@ | |||
2019-01-24 | Fix a crash on long lines when switching to another file by | Todd C. Miller | |
setting SC_SCR_CENTER which will cause the offsets in HMAP to be reset when painting the screen. OK martijn@ otto@ | |||
2018-09-17 | Use the strict pragma for better warnings. | Todd C. Miller | |
2018-07-13 | Remove cscope leftover and a stray comma. | Anthony J. Bentley | |
From "kshe" on tech@. | |||
2018-07-13 | Unused variable. | Kenneth R Westerback | |
ok martijn@ henning@ | |||
2018-07-11 | Remove an old and false comment. REALLOC now free(3)s the code if realloc | Martijn van Duren | |
fails. OK millert@ | |||
2018-02-12 | Simplify documentation of split-screen mode, avoiding abuse of [] | Ingo Schwarze | |
to sometimes mean "character set", which conflicts with the normal meaning of "optional element" in manual pages. While here, add a few related clarifications and tweak a few details. Triggered by a minor bug report from <trondd at kagu-tsuchi dot com>, and by bentley@ subsequently pointing out the abuse of []. Patch using input from jmc@, who also agreed with some previous versions. | |||
2018-02-03 | The recover script should have the same sanity checks as recover.c. | Todd C. Miller | |
Specifically, open files with O_NONBLOCK and enforce a mode of 0600. | |||
2017-12-14 | Enable the awk scripts to generate ex_def.h and options_def.h. | Martijn van Duren | |
These scripts generate the enums required for the ex commands and vi options. Before these lists had to be maintained either by hand or someone had to stumble upon these scripts and figure out how to use them. By enabling them these headers are now always in sync based on the comments in the corresponding source files, which are a lot harder to miss during an update than an extra file. Update the awk scripts to the new enum style introduced by bentley@ with his update on options_def.h r1.7 Feedback Makefile semantics by espie@ Original diff and OK tb@ OK millert@ | |||
2017-11-26 | Fix segfault which could be triggered by deleting a backwards sentence if | Ricardo Mestre | |
cursor's current line was blank: echo "\nfoo" > a && vi a d( Same fix applied by rin@NetBSD, via nvi2 project. OK tom@ martijn@ tb@ millert@ | |||
2017-11-10 | When tracing is compiled in make sure it flushes its content to disk as | Martijn van Duren | |
soon as the TRACE function is called. This helps while debugging crashes. Noticed and annoyed by while debugging the SIGTERM crash I just submitted. OK millert@ and tb@ | |||
2017-11-10 | Fix a use after free when sending SIGHUP or SIGTERM to vi when in editing | Martijn van Duren | |
mode. Found while testing previous commit by millert@ OK millert@ and tb@ | |||
2017-11-10 | Add rcv_openat() function that does the open, makes sure it is a | Todd C. Miller | |
regular file with the expected permissions and locks it. Inspired by changes in NetBSD by Christos. OK martijn@ | |||
2017-11-10 | Avoid using system(3) when running "sendmail -t". We already have | Todd C. Miller | |
the recover file fd open so just run sendmail with stdin set to the recover file. OK martijn@ | |||
2017-08-22 | Do not treat comma as part of the command modifier. | anton | |
ok schwarze@ | |||
2017-07-31 | Silence some warnings generated by clang. | Martijn van Duren | |
Original diff by espie@ with some minor tweaks by myself. OK espie@ and florian@ | |||
2017-07-20 | Replace usage of strtol() with strtonum(). | anton | |
ok bentley@ deraadt@ millert@ tb@ | |||
2017-07-05 | avoid double space caused by end-of-sentence detection; requested by jmc@ | Ingo Schwarze | |
2017-07-05 | nits about trailing punctuation found with mandoc -Tlint | Ingo Schwarze | |
2017-07-03 | markup fixes; | Jason McIntyre | |
2017-07-03 | Remove settings that were unimplemented for 20 years; update STANDARDS. | Anthony J. Bentley | |
ok jmc@ natano@ | |||
2017-06-30 | Add mdoc(7) macros to vi's built-in lists of roff paragraph/section macros. | Anthony J. Bentley | |
ok jmc@, no objection schwarze@ | |||
2017-06-24 | Fix a check in ADD_SPACE_{GOTO,RET} that potentially allowed for a | Martijn van Duren | |
NULL-dereference. OK tom@ | |||
2017-06-20 | Better document the :s ex command and its variants. | Anthony J. Bentley | |
ok jmc@ | |||
2017-06-15 | "10th's of a second" -> "tenths of a second" | Anthony J. Bentley | |
ok jmc@ | |||
2017-06-12 | Use openat() and unlinkat() instead of chdir()ing to the recovery dir. | Todd C. Miller | |
Since we use flock() and not fcntl() locking we can open the recovery file read-only. OK martijn@ | |||
2017-04-26 | Remove extraneous ", NULL" in the assignment of msgstr which was | Todd C. Miller | |
leftover from when msg_cat() was removed. From Anton Lindqvist | |||
2017-04-18 | free(NULL) is ok so use it; from Michael W. Bombardieri | Theo de Raadt | |
2017-01-20 | Nuke some excess whitespace. | Kenneth R Westerback | |
2016-12-18 | Use %zu/%d to print size_t/ssize_t. Cast recno_t (a.k.a. u_int32_t) | Kenneth R Westerback | |
to (unsigned long) to match %lu formats. Makes gcc happier and quieter. ok deraadt@ | |||
2016-12-18 | Nuke more unused variables. | Kenneth R Westerback | |
ok millert@ | |||
2016-11-05 | Remove syscall.ph from vi.recover | Andrew Fresh | |
since perl-5.10 chdir supports fchdir ok guenther@ | |||
2016-09-02 | Fix the begin of word issue in vi(1). | Martijn van Duren | |
Similar fix went in sed and ed. Feedback and OK schwarze@ | |||
2016-08-27 | Pull in <sys/time.h> for struct timespec and timeval | Philip Guenther | |
ok deraadt@ | |||
2016-08-14 | Kill '#if defined(DEBUG) && 0' blocks that used %q | Philip Guenther | |
ok bentley@ on principle | |||
2016-08-08 | /tmp and /var/tmp are the same, consistently use the former in both | Igor Sobrado | |
build/recover and documentation. ok millert@, tb@, martijn@ and schwarze@ | |||
2016-08-01 | Remove vi's "directory" option and TMPDIR support. | Anthony J. Bentley | |
ok jung@ | |||
2016-07-07 | biff, 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-29 | If /tmp/vi.recover doesn't exist, don't create it. Warn once | Theo Buehler | |
that it doesn't exist, afterwards fail silently. ok millert | |||
2016-05-28 | Test if stdin is a terminal before resetting the tty state. | Martijn van Duren | |
Diff supplied by Kai Antweiler. OK semarie@ and deraadt@ | |||
2016-05-27 | Revert CHAR_T removal. Some signedness flaws were introduced. | Martijn van Duren | |
Found the hard way by jca@ | |||
2016-05-07 | Free memory if realloc fails. The application is most likely to terminate after | Martijn van Duren | |
a failure, but if it does not we better clean up after ourselfs. OK deraadt@ and stefan@ | |||
2016-05-05 | Remove __sigblockset. This is a leftover after the removal of the signal | Martijn van Duren | |
blocking code in common/gs.h rev 1.14. Remove a redundant return while here. OK millert@ | |||
2016-05-02 | Remove pointless comment. getcwd(3) is safe. | Martijn van Duren | |
OK millert@ | |||
2016-05-02 | Remove CHAR_T in favor of native types. | Martijn van Duren | |
schwarze@ agrees with the direction. Few tweaks and OK tb@ | |||
2016-04-20 | Remove pointless reenter variable. | Martijn van Duren | |
OK millert@ |