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:
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;
|
||||
|
Loading…
Reference in New Issue
Block a user