mg

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

commit cef0c432f7bf10f4298e866f81effee3f44d3d32
parent ce38108f7b6a12a32e4428a7de2c34dd301225d5
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 28 Nov 2014 16:34:01 +0100

fileio: ask for newline, like vanilla mg

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

diff --git a/fileio.c b/fileio.c @@ -164,14 +164,12 @@ 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); }