mg

port of mg editor (openbsd to linux)
Log | Files | Refs | README

commit e78f2631650136bcf6556a98777a4c39c16bc84d
parent 68942e57b1cb35e24a372db05e9ff58ea0d95607
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon, 24 Nov 2014 20:55:34 +0100

don't ask for adding a newline to end of file

Diffstat:
fileio.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/fileio.c b/fileio.c @@ -164,12 +164,14 @@ ffputbuf(FILE *ffp, struct buffer *bp) /* * XXX should be variable controlled (once we have variables) */ +#if 0 if (llength(lback(lpend)) != 0) { if (eyorn("No newline at end of file, add one") == TRUE) { lnewline_at(lback(lpend), llength(lback(lpend))); putc('\n', ffp); } } +#endif return (FIOSUC); }