Age | Commit message (Collapse) | Author |
|
confusing description of L and C in the mode line.
Prompted by an email on tech@ by Leonid Bobrov <mazocomp () disroot ! org>
Co-written by myself and florian@, ok florian@
|
|
different effective user, i.e. when invoced via su and
backup-to-home-directory is enabled.
Problem pointed out and diff provied by Lucas Gabriel Vuotto
<lvuotto92 () gmail ! com>, thanks!
Subsequently slacked on for nearly a year by yours truly.
Then remembered when Han Boetes <hboetes () gmail ! com> came up with
a similar diff because of a problem report by Mark Willson where it
turned out that getlogin(2) is not very portable.
OK tb
|
|
Also tell the user if the parent shell spawned by popen(3)
was killed by a signal.
Discussed with jca@.
ok millert@ jca@ deraadt@
|
|
Diff from Lari Rasku <lari.rasku AT elisanet DOT fi>
ok florian@
|
|
from mazocomp
|
|
From Scott Cheloha (scottcheloha AT gmail), thanks!
OK bcallah
|
|
displaying the same buffer as the current one.
From Martin Wanvik (martin.kr.wanvik AT gmail), thanks!
OK bcallah
|
|
behavior.
From Scott Cheloha <scottcheloha@gmail.com>
ok florian@
|
|
Also fixes a crash reported by Hiltjo Posthuma <hiltjo at codemadness
dot org>, though in a different way than with the patch he sent.
OK florian@ bcallah@
|
|
by "Choose a display name <thelocals_job_applicant protonmail com>".
|
|
Found by bcallah, thanks!
|
|
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.
|