cgmnlm

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/cgmnlm.git
Log | Files | Refs | README | LICENSE

commit 7619edcd116385414b55764a3401a0c66c04da79
parent a5eae7ea6b35f7b2540fefdf4613a86916f0a0b0
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Mon,  5 Oct 2020 14:42:46 -0400

Display last line when it doesn't end in a newline

Diffstat:
Msrc/parser.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/parser.c b/src/parser.c @@ -46,7 +46,7 @@ gemini_parser_next(struct gemini_parser *p, struct gemini_token *tok) if (n == -1) { return -1; } else if (n == 0) { - eof = 1; + eof = p->bufln == 0; break; } p->bufln += n;