1
0
mirror of https://git.sr.ht/~sircmpwn/gmni synced 2024-11-23 04:51:59 +01:00

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

This commit is contained in:
Eyal Sawady 2020-10-05 14:42:46 -04:00 committed by Drew DeVault
parent a5eae7ea6b
commit 7619edcd11

@ -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;