Age | Commit message (Collapse) | Author |
|
switching to *scratch*. (Which seems to be the least useful thing to
do.)
This brings mg in line with emacs.
OK lum; deraadt@ was bugged by this, too
|
|
from Brian Callahan
|
|
ok lum@ sunil@
|
|
ok beck
|
|
in a directory without read permission. OK lum@
|
|
|
|
Coverity Scan found this interesting buglet. If read() fails the code,
before this patch, would trigger a "Negative array index write".
ok florian@
|
|
Collect forked off children from M-| command
Mg left zombies from commands executed when piping a region of text to
an external command. This patch makes sure to collect for the child
before returning.
ok sunil@ millert@
|
|
Found by Coverity Scan. The popbuf() function iterated over a list to
find a wp pointer, then sent it to showbuffer() which immediately went
ahead and dereferenced it. This patch simply adds a NULL pointer check
before calling showbuffer(), if NULL then just return NULL to callee.
ok awolk@ millert@
|
|
123
456
With the cursor on either the 4, 5 or 6 and no newline after the '6',
and then execute forward-paragraph (M-}), the cursor sits still and
does not move to the end of the second line (after the 6), which is in
effect the end of parapraph. This diff fixes that behaviour.
|
|
Coverity Scan reported these two stack variables as uninitialized, in
particular the .r_lineno struct member was uninitialized. This patch
clears the 'struct region' rather than setting .r_lineno because if
any more struct members are added in the future the clear will cover
them too.
Source Joachim Nilsson. ok tom@ millert@
|
|
Found by Coverity Scan. The ffropen() function returns FIODIR when the
file is a directory. Check return value on error, in case of directory,
close the descriptor.
Source Joachim Nilsson, ok sunil@
|
|
Found by Coverity Scan. The tagsvisit() function calls eread(),
which may return NULL. This is then immediately passed to stat()
without a proper check. This patch adds that check.
From Joachim Nilsson <troglobit@gmail.com> via lum@. Ok lum@
|
|
mg
c-x b RET
c-x k RET
mg segvs. Initial diff from Joachim Nilsson. This diff tested
by Han and Joachim and ok florian@ jasper@
|
|
|
|
|
|
|
|
it allows chown(2) call to change the user or group on a file.
- usr.bin/compress : aka gzip
- usr.bin/mg : open a file for writing
- usr.bin/sed : inplace editing
- usr.bin/sort : if outfile equals one of the input files
ok deraadt@ tb@
(and a reminder from Remi Locherer)
warning: in order to use it, you must have a recent kernel with the new
promise.
|
|
ok millert@
|
|
|
|
If you prefer "lighter" punctuation and one space between sentences,
for example:
Mr and Mrs Jones are from the UK. They arrived today.
over more liberal use of full stops and double spaces between
sentences:
Mr. and Mrs. Jones are from the U.K. They arrived today.
then toggling 'sentence-end-double-space' will make mg's
fill-paragraph function format text using one space instead of two
(the default) between sentences. However, be careful, should you have
a double spaced document and accidentally "format" it to have single
spaces, then you may have a problem. mg won't be able to revert the
formatting for you (unless you have a previous version of the text in
the "undo" history, or are using mg's backup facility and haven't
opened and saved multiple times!).
Comments from schwarze@
|
|
fill-paragraph. Reported by Harald Dunkel.
|
|
|
|
|
|
with emacs' behaviour.
from Harald Dunkel via Han Boetes
ok lum@
|
|
max-fillinger.net.
Ok lum@
|
|
|
|
Ok lum@ jasper@
|
|
check. From max at max-fillinger.net.
Ok lum@ jasper@
|
|
them as ".".
Ok lum@ jasper@
|
|
visble bell call.
|
|
|
|
Found by and Ok lum@.
|
|
assignment and I missed an ABORT case.
|
|
|
|
Limited to one iteration until 'undo' is looked into.
|
|
opened read-only. ok jasper@ phessler@ and man page advice from jmc@
|
|
|
|
accident in previous diff.
|
|
(and jasper@ ok'd recent tutorial diff, forgot to mention)
|
|
|
|
|
|
|
|
from strncasecmp to strcasecmp which will stop matching strings
with unwanted trailing characters.
ok jasper@ deraadt@
|
|
|
|
|
|
|
|
ifdef'ed with NOTAB, and doesn't seem to work.
OK lum@
|
|
|
|
|