]> Sergey Matveev's repositories - nnn.git/commitdiff
Be consistent on exiting curses mode
authorlostd <lostd@2f30.org>
Tue, 7 Oct 2014 17:59:41 +0000 (20:59 +0300)
committerlostd <lostd@2f30.org>
Tue, 7 Oct 2014 17:59:41 +0000 (20:59 +0300)
noice.c

diff --git a/noice.c b/noice.c
index 3e735fe22908c2f67fb44f7f698ff56a71c583d9..0f8e61f2e16677a10074939ac9b3f916c3eb319f 100644 (file)
--- a/noice.c
+++ b/noice.c
@@ -138,7 +138,7 @@ printwarn(void)
 void
 printerr(int ret, char *prefix)
 {
-       endwin();
+       exitcurses();
        printf("%s: %s\n", prefix, strerror(errno));
        exit(ret);
 }