display: make all dying messages end in a newline

So that the following shell prompt will not be glued onto the message
but will be on a line by itself.

Signed-off-by: Brand Huntsman <alpha@qzx.com>
master
Brand Huntsman 2018-10-18 18:21:44 -06:00 committed by Benno Schulenberg
parent 5c5806bbe7
commit d342cbbff8
2 changed files with 3 additions and 3 deletions

View File

@ -357,7 +357,7 @@ void *nmalloc(size_t howmuch)
void *r = malloc(howmuch);
if (r == NULL && howmuch != 0)
die(_("nano is out of memory!"));
die(_("nano is out of memory!\n"));
return r;
}
@ -369,7 +369,7 @@ void *nrealloc(void *ptr, size_t howmuch)
void *r = realloc(ptr, howmuch);
if (r == NULL && howmuch != 0)
die(_("nano is out of memory!"));
die(_("nano is out of memory!\n"));
return r;
}

View File

@ -204,7 +204,7 @@ void read_keys_from(WINDOW *win)
* check if errno is set to EIO ("Input/output error") and die in
* that case, but it's not always set properly. Argh. */
if (input == ERR && ++errcount == MAX_BUF_SIZE)
die(_("Too many errors from stdin"));
die(_("Too many errors from stdin\n"));
}
curs_set(0);