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
parent
5c5806bbe7
commit
d342cbbff8
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue