Age | Commit message (Collapse) | Author |
|
amendments to his diff are noted on tech
|
|
If there are two consecutive backslashes, skip past both so the
second is not mistakenly treated as an escape character.
This is consistent with how escaped backslashes are treated
in ex_substitute() and global(). From Bosco G. G.
|
|
Other users of qp->output already include a NULL check.
Avoids a crash when cursor key support is disabled in cl/cl_term.c.
From Jeremy Mates. OK tb@
|
|
From trondd, tested by various
ok afresh1
|
|
Issuing a zero-arg ex_edit command (:e) while using a named buffer
with no backing file caused vi(1)/ex(1) to free the strings
representing the buffer name and the name of the temporary file.
This change detects the situation and only frees the newly allocated
EXF structure (ep).
Reported on bugs@ by kn@.
OK millert@
|
|
3rd (variadic) mode_t parameter is irrelevant. Many developers in the past
have passed mode_t (0, 044, 0644, or such), which might lead future people
to copy this broken idiom, and perhaps even believe this parameter has some
meaning or implication or application. Delete them all.
This comes out of a conversation where tb@ noticed that a strange (but
intentional) pledge behaviour is to always knock-out high-bits from
mode_t on a number of system calls as a safety factor, and his bewilderment
that this appeared to be happening against valid modes (at least visually),
but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef.
ok millert
|
|
A zero-row window would not be usable (no room to edit) and the
code is full of assumptions that "sp->t_rows - 1" >= 0.
From Erik Ruotsalainen, fixes a bug reported by Paul de Weerd.
|
|
ok mortimer
|
|
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@
|
|
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@
|
|
Pointed out by jesper <at> ifconfig <dot> se
OK brynet@
|
|
fails.
OK millert@
|
|
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@
|
|
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@
|
|
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@
|
|
mode.
Found while testing previous commit by millert@
OK millert@ and tb@
|
|
regular file with the expected permissions and locks it. Inspired
by changes in NetBSD by Christos. OK martijn@
|
|
the recover file fd open so just run sendmail with stdin set to
the recover file. OK martijn@
|
|
Original diff by espie@ with some minor tweaks by myself.
OK espie@ and florian@
|
|
ok jmc@ natano@
|
|
ok jmc@, no objection schwarze@
|
|
NULL-dereference.
OK tom@
|
|
Since we use flock() and not fcntl() locking we can open the recovery
file read-only. OK martijn@
|
|
leftover from when msg_cat() was removed. From Anton Lindqvist
|
|
|
|
|
|
to (unsigned long) to match %lu formats. Makes gcc happier and
quieter.
ok deraadt@
|
|
ok deraadt@
|
|
ok bentley@ on principle
|
|
ok jung@
|
|
that it doesn't exist, afterwards fail silently.
ok millert
|
|
Found the hard way by jca@
|
|
a failure, but if it does not we better clean up after ourselfs.
OK deraadt@ and stefan@
|
|
schwarze@ agrees with the direction.
Few tweaks and OK tb@
|
|
got this upstreamed a few weeks ago.
ok tb (less a few style tweaks), martijn (who suggested style tweaks)
|
|
OK tb@
|
|
OK zhuk@ and tb@
|
|
OK schwarze@, zhuk@
fine with me tb@
|
|
ok millert@ schwarze@
|
|
|
|
From Martijn van Duren
|
|
which used to be used as the message number to lookup in the
catalog. From Martijn van Duren
|
|
msg_close() functions along with the msgcat command.
From Martijn van Duren
|
|
allocation macros. No binary change.
ok tb@
|
|
From FreeBSD.
ok claudio@ tb@
|
|
ok tb@
|
|
|
|
It makes no sense to keep support for a non-base tool in base, especially
for a feature that few if any people use.
|
|
Pointed out by Theo Buehler.
|
|
ok deraadt@
|