From: Pasi Kallinen Date: Thu, 22 May 2014 19:12:14 +0000 (+0300) Subject: Actually make ee give feedback when exiting due to strange characters X-Git-Tag: v1.6.1-roc-dev~59 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=d704c69b9010aa48bf91300300beeadffce05cb6;p=dgamelaunch Actually make ee give feedback when exiting due to strange characters --- diff --git a/ee.c b/ee.c index 67acefb..6312706 100644 --- a/ee.c +++ b/ee.c @@ -1970,8 +1970,16 @@ int *append; /* TRUE if must append more text to end of current line */ wchar_t in_string[MAX_FILE]; length = mbstowcs(in_string, in_str, sizeof(in_string)); - if (length == -1) + if (length == -1) { + wmove(com_win, 0, 0); + wprintw(com_win, "ERROR: Encountered a strange character. --more--"); + wclrtoeol(com_win); + wrefresh(com_win); + (void) wget_wch(com_win, &in); + resetty(); + endwin(); exit(0); + } str2 = in_string; num = 0;