commit d342cbbff85464cc4dc3e1f9a5f594f36c145e95
parent 5c5806bbe7f2d23c43e6c770caa489e67c6005a8
Author: Brand Huntsman <alpha@qzx.com>
Date: Thu, 18 Oct 2018 18:21:44 -0600
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>
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/utils.c b/src/utils.c
@@ -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;
}
diff --git a/src/winio.c b/src/winio.c
@@ -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);